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.

218 lines
9.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright(C) 1998-1999 Microsoft Corporation all rights reserved.
  4. //
  5. // Module: appmgrobj.h
  6. //
  7. // Project: Chameleon
  8. //
  9. // Description: Core Object Properties
  10. //
  11. // Log:
  12. //
  13. // When Who What
  14. // ---- --- ----
  15. // 12/03/98 TLP Initial Version
  16. // 03/19/99 TLP Added new alert method
  17. //
  18. //////////////////////////////////////////////////////////////////////////////
  19. #ifndef __INC_CORE_OBJECT_PROPERTIES_H
  20. #define __INC_CORE_OBJECT_PROPERTIES_H
  21. //////////////////////////////////////////////////////////////////////////////
  22. //
  23. // Appliance Manager Class
  24. // Appliance Manager Class Name
  25. #define CLASS_WBEM_APPMGR L"Microsoft_SA_Manager"
  26. // "Microsoft_SA_Manager" Class Properties
  27. #define PROPERTY_APPMGR_CURRENT_BUILD L"CurrentBuildNumber"
  28. #define PROPERTY_APPMGR_PRODUCT_ID L"ProductId"
  29. // "Microsoft_SA_Manager" Class Methods
  30. #define METHOD_APPMGR_RAISE_ALERT L"RaiseAlert"
  31. #define METHOD_APPMGR_CLEAR_ALERT L"ClearAlert"
  32. #define METHOD_APPMGR_CLEAR_ALERT_ALL L"ClearAlertAll"
  33. #define METHOD_APPMGR_RESET_APPLIANCE L"ResetAppliance"
  34. // Appliance Manager Method Parameters
  35. #define PROPERTY_RESET_APPLIANCE_POWER_OFF L"PowerOff"
  36. // Common Method Names
  37. #define METHOD_APPMGR_ENABLE_OBJECT L"Enable"
  38. #define METHOD_APPMGR_DISABLE_OBJECT L"Disable"
  39. #define METHOD_APPMGR_EXECUTE_TASK L"Execute"
  40. //////////////////////////////////////////////////////////////////////////////
  41. //////////////////////////////////////////////////////////////////////////////
  42. //
  43. // Alert Class
  44. // Alert Class Name
  45. #define CLASS_WBEM_ALERT L"Microsoft_SA_Alert"
  46. // "Microsoft_SA_Alert" Class Properties
  47. #define PROPERTY_ALERT_TYPE L"AlertType"
  48. #define PROPERTY_ALERT_ID L"AlertID"
  49. #define PROPERTY_ALERT_SOURCE L"AlertSource"
  50. #define PROPERTY_ALERT_LOG L"AlertLog"
  51. #define PROPERTY_ALERT_STRINGS L"ReplacementStrings"
  52. #define PROPERTY_ALERT_DATA L"AlertData"
  53. #define PROPERTY_ALERT_TTL L"TimeToLive"
  54. #define PROPERTY_ALERT_COOKIE L"Cookie"
  55. #define PROPERTY_ALERT_FLAGS L"AlertFlags"
  56. // Default alert source and alert log
  57. #define DEFAULT_ALERT_SOURCE L"Microsoft_SA_Resource"
  58. #define DEFAULT_ALERT_LOG L"svrapp"
  59. //////////////////////////////////////////////////////////////////////////////
  60. //////////////////////////////////////////////////////////////////////////////
  61. //
  62. // Service Class
  63. // Service Class Name
  64. #define CLASS_WBEM_SERVICE L"Microsoft_SA_Service"
  65. // "Microsoft_SA_Service" Class Properties
  66. #define PROPERTY_SERVICE_STATUS L"IsEnabled"
  67. #define PROPERTY_SERVICE_CONTROL L"CanDisable"
  68. #define PROPERTY_SERVICE_NAME L"ServiceName"
  69. #define PROPERTY_SERVICE_PROGID L"ServiceProgID"
  70. #define PROPERTY_SERVICE_CONTEXT L"InProcDLL"
  71. #define PROPERTY_SERVICE_MERIT L"Merit"
  72. #define PROPERTY_SERVICE_PROVIDER_CLSID L"WMIProviderCLSID"
  73. // "Microsoft_SA_Service" Class Methods
  74. #define METHOD_SERVICE_ENABLE_OBJECT METHOD_APPMGR_ENABLE_OBJECT
  75. #define METHOD_SERVICE_DISABLE_OBJECT METHOD_APPMGR_DISABLE_OBJECT
  76. // Names of Stock Chameleon Services (note the naming convention... :) )
  77. #define SERVICE_NAME_APPLIANCE_INIT L"ApplianceInitService"
  78. #define SERVICE_NAME_CLIENT_ALERT L"ClientAlertService"
  79. #define SERVICE_NAME_DISK_MANAGEMENT L"DiskManagement"
  80. #define SERVICE_NAME_FILE_SHARING L"File Service"
  81. #define SERVICE_NAME_INET_SHARING L"Inet Sharing"
  82. #define SERVICE_NAME_PRINT_SHARING L"Print Sharing"
  83. #define SERVICE_NAME_SECURITY L"Security"
  84. #define SERVICE_NAME_USER_MANAGEMENT L"User Management"
  85. #define SERVICE_NAME_SSL L"SSLSvc"
  86. //////////////////////////////////////////////////////////////////////////////
  87. //////////////////////////////////////////////////////////////////////////////
  88. //
  89. // Task Class
  90. // Task Class Name
  91. #define CLASS_WBEM_TASK L"Microsoft_SA_Task"
  92. // "Microsoft_SA_Task" Class Properties
  93. #define PROPERTY_TASK_STATUS L"IsEnabled"
  94. #define PROPERTY_TASK_CONTROL L"CanDisable"
  95. #define PROPERTY_TASK_NAME L"TaskName"
  96. #define PROPERTY_TASK_EXECUTABLES L"TaskExecutables"
  97. #define PROPERTY_TASK_MET L"MaxExecutionTime"
  98. #define PROPERTY_TASK_CONCURRENCY L"IsSingleton"
  99. #define PROPERTY_TASK_AVAILABILITY L"IsAvailable"
  100. #define PROPERTY_TASK_RESTART_ACTION L"RestartAction"
  101. #define TASK_RESTART_ACTION_NONE 0
  102. #define TASK_RESTART_ACTION_RUN 1
  103. // Task Context Stock Properties
  104. #define PROPERTY_TASK_METHOD_NAME L"MethodName"
  105. #define PROPERTY_TASK_CONTEXT L"TaskContextPtr"
  106. // Task Context Optional Properties
  107. #define PROPERTY_TASK_ASYNC L"IsAsync"
  108. #define PROPERTY_TASK_NICE_NAME L"TaskNiceName"
  109. #define PROPERTY_TASK_URL L"TaskURL"
  110. // "Microsoft_SA_Task" Class Methods
  111. #define METHOD_TASK_ENABLE_OBJECT METHOD_APPMGR_ENABLE_OBJECT
  112. #define METHOD_TASK_DISABLE_OBJECT METHOD_APPMGR_DISABLE_OBJECT
  113. #define METHOD_TASK_EXECUTE METHOD_APPMGR_EXECUTE_TASK
  114. // Names of Stock Appliance Tasks
  115. #define APPLIANCE_INITIALIZATION_TASK L"ApplianceInitializationTask"
  116. #define APPLIANCE_SHUTDOWN_TASK L"ApplianceShutdownTask"
  117. #define RESET_CONFIGURATION_TASK L"ResetConfigurationTask"
  118. #define INET_TO_EVERYONE_TASK L"AddEveryoneInetAccess"
  119. #define ADD_INET_USER_TASK L"AddInetUser"
  120. #define ADD_APPLIANCE_DISK_TASK L"AddSADisk"
  121. #define CHANGE_ADMIN_STATUS_TASK L"ChangeSAUserAdminStatus"
  122. #define CHANGE_USER_NAME_TASK L"ChangeSAUserFullName"
  123. #define CHANGE_USER_PASSWORD_TASK L"ChangeSAUserPassword"
  124. #define CONFIG_CHANGE_ALERT_TASK L"ConfigChangeAlert"
  125. #define CREATE_USER_TASK L"CreateSAUser"
  126. #define DELETE_USER_TASK L"DeleteSAUser"
  127. #define ENABLE_SECURITY_TASK L"EnableSecurity"
  128. #define FORCE_CHANGE_PASSWORD_TASK L"ForceSAUserChangePwd"
  129. #define INET_FROM_EVERYONE_TASK L"RemoveEveryoneInetAccess"
  130. #define REMOVE_INET_USER_TASK L"RemoveInetUser"
  131. #define ROLLBACK_TASK L"RollbackTask"
  132. #define SET_DATE_TIME_TASK L"SetDateTime"
  133. #define SET_TIME_ZONE_TASK L"SetTimeZone"
  134. #define TAKE_OWNERSHIP_TASK L"TakeOwnership"
  135. #define SYSTEM_UPDATE_TASK L"Update Task"
  136. #define APPLIANCE_FIRSTBOOT_TASK L"FirstBootTask"
  137. #define APPLIANCE_SECONDBOOT_TASK L"SecondBootTask"
  138. #define APPLIANCE_EVERYBOOT_TASK L"EveryBootTask"
  139. //////////////////////////////////////////////////////////////////////////////
  140. //
  141. // User Class
  142. // User Class Name
  143. #define CLASS_WBEM_USER L"Microsoft_SA_User"
  144. // "Microsoft_SA_Task" Class Properties
  145. #define PROPERTY_USER_SAMNAME L"UserName"
  146. #define PROPERTY_USER_FULLNAME L"FullName"
  147. #define PROPERTY_USER_ISADMIN L"IsUserAdmin"
  148. #define PROPERTY_USER_SID L"UserSid"
  149. #define PROPERTY_USER_CONTROL L"CanDisable"
  150. #define PROPERTY_USER_STATUS L"IsEnabled"
  151. #define PROPERTY_USER_RESOURCE_CLASS L"ResourceClass"
  152. // "Microsoft_SA_User" Class Methods
  153. #define METHOD_USER_ENABLE_OBJECT METHOD_APPMGR_ENABLE_OBJECT
  154. #define METHOD_USER_DISABLE_OBJECT METHOD_APPMGR_DISABLE_OBJECT
  155. //////////////////////////////////////////////////////////////////////////////
  156. //
  157. // Event Classes
  158. // Alert Event Classes
  159. #define CLASS_WBEM_RAISE_ALERT L"Microsoft_SA_RaiseAlert"
  160. #define CLASS_WBEM_CLEAR_ALERT L"Microsoft_SA_ClearAlert"
  161. //////////////////////////////////////////////////////////////////////////////
  162. //
  163. // Server Appliance Named Events
  164. //
  165. #define SA_STOPPED_SERVICES_EVENT L"ServerApplianceStoppedServices"
  166. #define SA_INDICATE_SHUTDOWN_EVENT L"ServerApplianceIndicateShutdown"
  167. //////////////////////////////////////////////////////////////////////////////
  168. //
  169. // Registry key name of Microsoft_SA_Alert
  170. //
  171. #define SA_ALERT_REGISTRY_KEYNAME L"SOFTWARE\\Microsoft\\ServerAppliance\\ApplianceManager\\ObjectManagers\\Microsoft_SA_Alert"
  172. #endif // __INC_CORE_OBJECT_PROPERTIES_H