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.

123 lines
2.5 KiB

  1. // Registry constants
  2. //
  3. #define REGSTR_PATH_CURRENTVERSION _T("Software\\Microsoft\\Windows\\CurrentVersion")
  4. #define REGSTR_PATH_CURRENTVERSION_SETUP REGSTR_PATH_CURRENTVERSION _T("\\Setup")
  5. #define REGSTR_PATH_SYSTEM_SETUP _T("System\\Setup")
  6. #define REGSTR_VALUE_AUDIT _T("AuditInProgress")
  7. #define REGSTR_VAL_OEMRESET _T("OEMReset")
  8. #define REGSTR_VAL_OEMCLEANUP _T("OEMCLEANUP")
  9. #define REGSTR_VAL_OEMRESETSWITCH _T("OEMReset_Switch")
  10. #define REGSTR_VAL_MASS_STORAGE _T("CriticalDevicesInstalled")
  11. #define REGSTR_PATH_SYSPREP _T("Software\\Microsoft\\Sysprep")
  12. #define REGSTR_VAL_SIDGEN _T("SidsGenerated")
  13. #define REGSTR_VAL_SIDGENHISTORY _T("SidsGeneratedHistory")
  14. #define REGSTR_VAL_DISKSIG _T("BootDiskSig")
  15. #define REGSTR_PATH_SERVICES_MOUNTMGR _T("System\\CurrentControlSet\\Services\\MountMgr")
  16. #define REGSTR_VAL_NOAUTOMOUNT _T("NoAutoMount")
  17. // INF constants
  18. //
  19. #define INF_SEC_AUDITING _T("Auditing") // Section in oemaudit.inf
  20. #define INF_SEC_SYSTEM_RESTORE _T("System_restore") // Section processed in oemaudit.inf
  21. #define INF_SEC_OEMRESET _T("OEMRESET") // Section in oemaudit.inf
  22. // Global defines
  23. //
  24. #define SYSPREP_SHUTDOWN_FLAGS SHTDN_REASON_FLAG_PLANNED | SHTDN_REASON_MAJOR_OPERATINGSYSTEM | SHTDN_REASON_MINOR_INSTALLATION
  25. // ============================================================================
  26. // FUNCTION DECLARATIONS
  27. // ============================================================================
  28. BOOL
  29. CheckParams(
  30. LPSTR lpCmdLine
  31. );
  32. extern BOOL
  33. NukeMruList(
  34. VOID
  35. );
  36. extern BOOL
  37. IsSetupClPresent(
  38. VOID
  39. );
  40. extern BOOL
  41. IsUserAdmin(
  42. VOID
  43. );
  44. extern BOOL
  45. CheckOSVersion(
  46. VOID
  47. );
  48. extern BOOL
  49. IsDomainMember(
  50. VOID
  51. );
  52. extern BOOL
  53. DoesUserHavePrivilege(
  54. PCTSTR
  55. );
  56. extern BOOL
  57. EnablePrivilege(
  58. IN PCTSTR,
  59. IN BOOL
  60. );
  61. extern BOOL
  62. FDoFactoryPreinstall(
  63. VOID
  64. );
  65. extern VOID
  66. ShowOemresetDialog(
  67. HINSTANCE
  68. );
  69. BOOL
  70. ResealMachine(
  71. VOID
  72. );
  73. BOOL
  74. FPrepareMachine(
  75. VOID
  76. );
  77. BOOL LockApplication(
  78. BOOL
  79. );
  80. VOID
  81. ShutdownOrReboot(
  82. UINT uFlags,
  83. DWORD dwReserved
  84. );
  85. VOID
  86. SysprepShutdown(
  87. VOID
  88. );
  89. BOOL
  90. CheckOSVersion(
  91. VOID
  92. );
  93. BOOL
  94. RememberAndClearMountMgrSettings(
  95. VOID
  96. );