STRUCTS.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  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. typedef struct _MiniAccount {
  18.     struct _MiniAccount *   pNext;
  19.     PWSTR                   pszUsername;
  20.     PWSTR                   pszDomain;
  21.     PWSTR                   pszPassword;
  22.     PWSTR                   pszComment;
  23.     DWORD                   IconId;
  24.     DWORD                   Flags;
  25. } MiniAccount, * PMiniAccount;
  26. typedef struct _SerializedMiniAccount {
  27.     DWORD                   Version;
  28.     DWORD                   dwDomainOffset;
  29.     DWORD                   dwDomainLength;
  30.     DWORD                   dwPasswordOffset;
  31.     DWORD                   dwPasswordLength;
  32.     DWORD                   dwCommentOffset;
  33.     DWORD                   dwCommentLength;
  34.     DWORD                   Flags;
  35.     DWORD                   IconId;
  36. } SerializedMiniAccount, * PSerializedMiniAccount;
  37. #define MINI_VERSION            0
  38. #define MINI_PASSWORD_REQUIRED  0x00000001
  39. #define MINI_PASSWORD_ALWAYS    0x00000002
  40. #define MINI_NEW_ACCOUNT        0x00000004
  41. #define MINI_CAN_EDIT           0x00000008
  42. #define MINI_AUTO_LOGON         0x00000010
  43. #define MINI_SAVE               0x00000020
  44. typedef struct _Globals {
  45.     BOOL                    fAllowNewUser;
  46.     BOOL                    fAutoLogonAtBoot;
  47.     BOOL                    fAutoLogonAlways;
  48.     HANDLE                  hUserToken;
  49.     PMiniAccount            pAccount;
  50. } Globals, * PGlobals;