home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / security / winnt / gina / welcome.c < prev   
C/C++ Source or Header  |  1997-10-09  |  908b  |  47 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright 1992 - 1997 Microsoft Corporation.
  5. //
  6. //  File:       welcome.c
  7. //
  8. //  Contents:
  9. //
  10. //  Classes:
  11. //
  12. //  Functions:
  13. //
  14. //  History:    4-20-95   RichardW   Created
  15. //
  16. //----------------------------------------------------------------------------
  17.  
  18. #include "gina.h"
  19.  
  20.  
  21. int
  22. CALLBACK
  23. WelcomeDlgProc(
  24.     HWND        hDlg,
  25.     UINT        Message,
  26.     WPARAM      wParam,
  27.     LPARAM      lParam)
  28. {
  29.     switch (Message)
  30.     {
  31.         case WM_INITDIALOG:
  32.             CenterWindow(hDlg);
  33.             return(TRUE);
  34.  
  35.         case WM_COMMAND:
  36.             if (LOWORD(wParam) == IDOK)
  37.             {
  38.                 pWlxFuncs->WlxSasNotify(hGlobalWlx, GINA_SAS_1);
  39.             }
  40.             return(TRUE);
  41.  
  42.         default:
  43.             return(FALSE);
  44.     }
  45.  
  46. }
  47.