Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1993 **
  4. //*********************************************************************
  5. #ifndef _USER_H_
  6. #define _USER_H_
  7. #define UT_USER 0x01 // user types
  8. #define UT_MACHINE 0x02
  9. #define UT_MASK 0x03
  10. #define UF_GROUP 0x04 // flag, combined with UT_USER or UT_MACHINE
  11. // signifies group
  12. #define MAXNAMELEN 39
  13. #define INIT_WITH_DEFAULT (UINT) -1
  14. #define NO_VALUE (UINT) -1
  15. typedef struct tagSETTINGDATA {
  16. DWORD dwType;
  17. union {
  18. UINT uData; // for checkboxes/radio buttons/enum types, contains data
  19. UINT uOffsetData; // for string types, contains offset to data from
  20. // beginning of USERDATA buffer
  21. };
  22. } SETTINGDATA;
  23. typedef struct tagUSERHDR {
  24. DWORD dwType; // type of user
  25. CHAR szName[MAXNAMELEN+1]; // user/group/machine name
  26. } USERHDR;
  27. typedef struct tagUSERDATA {
  28. DWORD dwSize; // size of buffer
  29. USERHDR hdr;
  30. HGLOBAL hClone; // if non-NULL, "clone" of this user with initial settings
  31. UINT nSettings;
  32. SETTINGDATA SettingData[];
  33. // variable-length data here
  34. } USERDATA;
  35. #endif _USER_H_
  36.