Leaked source code of windows server 2003
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.

114 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. SceProfInfoAdapter.h
  5. Abstract:
  6. definition of interface for class SceProfInfoAdapter
  7. This is an adapter for structure SCE_PROFILE_INFO. This class is
  8. necessary becaue SCE_PROFILE_INFO is defined differently in
  9. w2k and in xp and provides a common structure to work with regardless
  10. of whether the system is winxp or win2k
  11. This class is given a pointer to an SCE_PROFILE_INFO structure
  12. at construct time and its fields are populated accordingly depending
  13. on which OS the dll is running on.
  14. Author:
  15. Steven Chan (t-schan) July 2002
  16. --*/
  17. #ifndef SCEPROFINFOADAPTERH
  18. #define SCEPROFINFOADAPTERH
  19. #include "secedit.h"
  20. #include "w2kstructdefs.h"
  21. struct SceProfInfoAdapter {
  22. public:
  23. SceProfInfoAdapter(PSCE_PROFILE_INFO ppInfo, BOOL bIsW2k);
  24. ~SceProfInfoAdapter();
  25. // Type is used to free the structure by SceFreeMemory
  26. SCETYPE Type;
  27. //
  28. // Area: System access
  29. //
  30. DWORD MinimumPasswordAge;
  31. DWORD MaximumPasswordAge;
  32. DWORD MinimumPasswordLength;
  33. DWORD PasswordComplexity;
  34. DWORD PasswordHistorySize;
  35. DWORD LockoutBadCount;
  36. DWORD ResetLockoutCount;
  37. DWORD LockoutDuration;
  38. DWORD RequireLogonToChangePassword;
  39. DWORD ForceLogoffWhenHourExpire;
  40. PWSTR NewAdministratorName;
  41. PWSTR NewGuestName;
  42. DWORD SecureSystemPartition;
  43. DWORD ClearTextPassword;
  44. DWORD LSAAnonymousNameLookup;
  45. // Area: user settings (sap)
  46. PSCE_NAME_LIST pUserList;
  47. // Area: privileges
  48. PSCE_PRIVILEGE_ASSIGNMENT pPrivilegeAssignedTo;
  49. // Area: group membership
  50. PSCE_GROUP_MEMBERSHIP pGroupMembership;
  51. // Area: Registry
  52. SCE_OBJECTS pRegistryKeys;
  53. // Area: System Services
  54. PSCE_SERVICES pServices;
  55. // System storage
  56. SCE_OBJECTS pFiles;
  57. //
  58. // ds object
  59. //
  60. SCE_OBJECTS pDsObjects;
  61. //
  62. // kerberos policy settings
  63. //
  64. PSCE_KERBEROS_TICKET_INFO pKerberosInfo;
  65. //
  66. // System audit 0-system 1-security 2-application
  67. //
  68. DWORD MaximumLogSize[3];
  69. DWORD AuditLogRetentionPeriod[3];
  70. DWORD RetentionDays[3];
  71. DWORD RestrictGuestAccess[3];
  72. DWORD AuditSystemEvents;
  73. DWORD AuditLogonEvents;
  74. DWORD AuditObjectAccess;
  75. DWORD AuditPrivilegeUse;
  76. DWORD AuditPolicyChange;
  77. DWORD AuditAccountManage;
  78. DWORD AuditProcessTracking;
  79. DWORD AuditDSAccess;
  80. DWORD AuditAccountLogon;
  81. DWORD CrashOnAuditFull;
  82. //
  83. // registry values
  84. //
  85. DWORD RegValueCount;
  86. PSCE_REGISTRY_VALUE_INFO aRegValues;
  87. DWORD EnableAdminAccount;
  88. DWORD EnableGuestAccount;
  89. };
  90. #endif