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.

237 lines
15 KiB

  1. ��////////////////////////////////////////////////////////////////////////////////
  2. // HealthMon.Mof
  3. // Copyright (c)2000 Microsoft Corporation, All Rights Reserved
  4. #pragma autorecover
  5. #pragma namespace("\\root\\cimv2\\MicrosoftHealthMonitor")
  6. //
  7. //*****************************************************************************
  8. //
  9. class LogFileEventConsumer : __EventConsumer
  10. {
  11. [key] string Name;
  12. [Description("Fully qualified path name for the log file."
  13. "If file does not exist, it will be created."
  14. "If directory does not exist, file will not be created.")]
  15. string Filename;
  16. string Text;
  17. [Description("Maximum size to which file is allowed to grow. It will "
  18. "be archived when it exceeds this size. Archived files "
  19. "have an extension of .001 through .999. A value of zero "
  20. "will be interpreted to mean 'do not archive.' ")]
  21. uint64 MaximumFileSize = 0;
  22. [Description("If FALSE or NULL, file will not be Unicode.")]
  23. boolean IsUnicode;
  24. };
  25. class CommandLineEventConsumer : __EventConsumer
  26. {
  27. [key] string Name;
  28. [not_null] string ExecutablePath = "noop";
  29. string CommandLineTemplate;
  30. boolean UseDefaultErrorMode = FALSE;
  31. boolean CreateNewConsole = FALSE;
  32. boolean CreateNewProcessGroup = FALSE;
  33. boolean CreateSeparateWowVdm = FALSE;
  34. boolean CreateSharedWowVdm = FALSE;
  35. sint32 Priority = 32;
  36. string WorkingDirectory;
  37. string DesktopName;
  38. string WindowTitle;
  39. uint32 XCoordinate;
  40. uint32 YCoordinate;
  41. uint32 XSize;
  42. uint32 YSize;
  43. uint32 XNumCharacters;
  44. uint32 YNumCharacters;
  45. uint32 FillAttribute;
  46. uint32 ShowWindowCommand;
  47. boolean ForceOnFeedback = FALSE;
  48. boolean ForceOffFeedback = FALSE;
  49. boolean RunInteractively = FALSE;
  50. [description("Number of seconds that child process is allowed to run"
  51. "if zero, process will not be terminated")]
  52. uint32 KillTimeout = 120;
  53. };
  54. [description("Logs events into event log")]
  55. class NTEventLogEventConsumer : __EventConsumer
  56. {
  57. [key] string Name;
  58. string UNCServerName;
  59. string SourceName;
  60. [not_null] uint32 EventID = 1;
  61. uint32 EventType = 1;
  62. uint32 Category;
  63. uint32 NumberOfInsertionStrings = 0;
  64. string InsertionStringTemplates[] = {""};
  65. };
  66. class ActiveScriptEventConsumer : __EventConsumer
  67. {
  68. [key] string Name;
  69. string ScriptingEngine;
  70. string ScriptText;
  71. string ScriptFilename;
  72. [description("Number of seconds that script is allowed to run"
  73. "if zero, script will not be terminated")]
  74. uint32 KillTimeout = 120;
  75. };
  76. instance of __Win32Provider as $P3
  77. {
  78. Name = "LogFileEventConsumer";
  79. Clsid = "{266c72d4-62e8-11d1-ad89-00c04fd8fdff}";
  80. };
  81. instance of __EventConsumerProviderRegistration
  82. {
  83. Provider = $P3;
  84. ConsumerClassNames = {"LogFileEventConsumer"};
  85. };
  86. instance of __Win32Provider as $P4
  87. {
  88. Name = "CommandLineEventConsumer";
  89. Clsid = "{266c72e5-62e8-11d1-ad89-00c04fd8fdff}";
  90. };
  91. instance of __EventConsumerProviderRegistration
  92. {
  93. Provider = $P4;
  94. ConsumerClassNames = {"CommandLineEventConsumer"};
  95. };
  96. instance of __Win32Provider as $P5
  97. {
  98. Name = "NTEventLogEventConsumer";
  99. Clsid = "{266c72e6-62e8-11d1-ad89-00c04fd8fdff}";
  100. };
  101. instance of __EventConsumerProviderRegistration
  102. {
  103. Provider = $P5;
  104. ConsumerClassNames = {"NTEventLogEventConsumer"};
  105. };
  106. instance of __Win32Provider as $P6
  107. {
  108. Name = "ActiveScriptEventConsumer";
  109. Clsid = "{266c72e7-62e8-11d1-ad89-00c04fd8fdff}";
  110. };
  111. instance of __EventConsumerProviderRegistration
  112. {
  113. Provider = $P6;
  114. ConsumerClassNames = {"ActiveScriptEventConsumer"};
  115. };
  116. //
  117. //*****************************************************************************
  118. //
  119. [locale(1033)]
  120. class SMTPEventConsumer : __EventConsumer
  121. {
  122. [key] string Name;
  123. [Template] string Subject;
  124. [Template] string Message;
  125. [Template] string ToLine;
  126. [Template] string FromLine;
  127. [not_null] string SMTPServer = "noop";
  128. [Template] string CcLine;
  129. [Template] string BccLine;
  130. };
  131. Instance of __Win32Provider as $P10
  132. {
  133. Name = "SMTPEventConsumer";
  134. Clsid = "{C7A3A54B-0250-11d3-9CD1-00105A1F4801}";
  135. };
  136. Instance of __EventConsumerProviderRegistration
  137. {
  138. Provider = $P10;
  139. ConsumerClassNames = {"SMTPEventConsumer"};
  140. };
  141. //
  142. //*****************************************************************************
  143. //
  144. #pragma namespace("\\\\.\\Root\\Default")
  145. [locale(1033)]
  146. class ActiveScriptEventConsumer : __EventConsumer
  147. {
  148. [key] string Name;
  149. [not_null] string ScriptingEngine = "noop";
  150. [Template] string ScriptText;
  151. string ScriptFilename;
  152. uint32 KillTimeout = 120;
  153. };
  154. Instance of __Win32Provider as $P
  155. {
  156. Name = "ActiveScriptEventConsumer";
  157. Clsid = "{266c72e7-62e8-11d1-ad89-00c04fd8fdff}";
  158. PerUserInitialization = TRUE;
  159. };
  160. Instance of __EventConsumerProviderRegistration
  161. {
  162. Provider = $P;
  163. ConsumerClassNames = {"ActiveScriptEventConsumer"};
  164. };
  165. #pragma namespace("\\\\.\\Root")
  166. Instance of __Namespace
  167. {
  168. Name = "CIMV2";
  169. };
  170. #pragma namespace("\\\\.\\Root\\CIMV2")
  171. [locale(1033),Singleton]
  172. class ScriptingStandardConsumerSetting : CIM_Setting
  173. {
  174. [Read,Override("SettingID")] string SettingID = "ScriptingStandardConsumerSetting";
  175. [Read,Override("Caption")] string Caption = "Scripting Standard Consumer Setting";
  176. [Read,Override("Description")] string Description = "Registration data common to all instances of the Scripting Standard Consumer";
  177. [Read] uint32 MaximumScripts = 300;
  178. [Read,units("Minutes")] uint32 Timeout = 0;
  179. };
  180. Instance of ScriptingStandardConsumerSetting
  181. {
  182. MaximumScripts = 300;
  183. Timeout = 0;
  184. };
  185. #pragma namespace("\\\\.\\Root\\Default")
  186. instance of __namespace{ name="ms_409";};
  187. #pragma namespace("\\\\.\\Root\\Default\\ms_409")
  188. [AMENDMENT, LOCALE(0x409)]
  189. class ActiveScriptEventConsumer : __EventConsumer
  190. {
  191. [description("Name of the scripting engine, ex: VBScript") : Amended] string ScriptingEngine;
  192. [description("Text of the script, expressed in a languageknown to the scripting engine.") : Amended] string ScriptText;
  193. [description("Filename of a script file to be run, note that thisis intended as an alternative to specifying the textof the script in ScriptText. Results are undefinedif both properties are assigned values.") : Amended] string ScriptFilename;
  194. [description("Number of seconds that the script is allowed to run,if zero script will not be terminated. Appliesonly to scripts specified in the ScriptText property.") : Amended] uint32 KillTimeout;
  195. };
  196. #pragma namespace("\\\\.\\Root\\CIMV2")
  197. instance of __namespace{ name="ms_409";};
  198. #pragma namespace("\\\\.\\Root\\CIMV2\\ms_409")
  199. [Description("Provides registration datacommon to all instances of the Scripting Standard Consumer") : Amended,AMENDMENT, LOCALE(0x409)]
  200. class ScriptingStandardConsumerSetting : CIM_Setting
  201. {
  202. [Description("Maximum number of scripts run before the consumerwill start a new instance. The consumer should be shut downperiodically to clear out memory leaks from the scripts.") : Amended] uint32 MaximumScripts;
  203. [Description("Maximum number of minutes before the consumerwill start a new instance. If zero, consumer lifetime iscontrolled by the MaximumScripts property. Valid Range: 0-71,000.") : Amended] uint32 Timeout;
  204. };