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 / structs.h < prev    next >
Text File  |  1997-10-09  |  2KB  |  58 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright 1992 - 1997 Microsoft Corporation.
  5. //
  6. //  File:       structs.h
  7. //
  8. //  Contents:
  9. //
  10. //  Classes:
  11. //
  12. //  Functions:
  13. //
  14. //  History:    4-20-95   RichardW   Created
  15. //
  16. //----------------------------------------------------------------------------
  17.  
  18.  
  19. typedef struct _MiniAccount {
  20.     struct _MiniAccount *   pNext;
  21.     PWSTR                   pszUsername;
  22.     PWSTR                   pszDomain;
  23.     PWSTR                   pszPassword;
  24.     PWSTR                   pszComment;
  25.     DWORD                   IconId;
  26.     DWORD                   Flags;
  27. } MiniAccount, * PMiniAccount;
  28.  
  29. typedef struct _SerializedMiniAccount {
  30.     DWORD                   Version;
  31.     DWORD                   dwDomainOffset;
  32.     DWORD                   dwDomainLength;
  33.     DWORD                   dwPasswordOffset;
  34.     DWORD                   dwPasswordLength;
  35.     DWORD                   dwCommentOffset;
  36.     DWORD                   dwCommentLength;
  37.     DWORD                   Flags;
  38.     DWORD                   IconId;
  39. } SerializedMiniAccount, * PSerializedMiniAccount;
  40.  
  41. #define MINI_VERSION            0
  42.  
  43. #define MINI_PASSWORD_REQUIRED  0x00000001
  44. #define MINI_PASSWORD_ALWAYS    0x00000002
  45. #define MINI_NEW_ACCOUNT        0x00000004
  46. #define MINI_CAN_EDIT           0x00000008
  47. #define MINI_AUTO_LOGON         0x00000010
  48. #define MINI_SAVE               0x00000020
  49.  
  50.  
  51. typedef struct _Globals {
  52.     BOOL                    fAllowNewUser;
  53.     BOOL                    fAutoLogonAtBoot;
  54.     BOOL                    fAutoLogonAlways;
  55.     HANDLE                  hUserToken;
  56.     PMiniAccount            pAccount;
  57. } Globals, * PGlobals;
  58.