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.

331 lines
9.0 KiB

  1. #pragma autorecover
  2. #pragma namespace("\\\\.\\root")
  3. instance of __Namespace
  4. {
  5. Name = "WMI";
  6. };
  7. #pragma namespace ("\\\\.\\root\\wmi")
  8. //*************************************************************
  9. //*** Creates namespace for TRACE under \root\wmi
  10. //*** EventTrace - is the root for all Trace Guids
  11. //*** All Provider Control Guids will derive from EventTrace
  12. //*** All Trace Data Guids will derive from their ControlGuid
  13. //***
  14. //*** This is a duplicate copy of EventTrace in wmicore.mof.
  15. //*** We add this class to support WMI autorecover. This copy
  16. //*** must coincide with the one in wmicore.mof
  17. //*************************************************************
  18. [abstract]
  19. class EventTrace
  20. {
  21. [HeaderDataId(1),
  22. Description("Trace Event Size") : amended,
  23. read]
  24. uint16 EventSize;
  25. [HeaderDataId(2),
  26. Description("Reserved") : amended,
  27. read]
  28. uint16 ReservedHeaderField;
  29. [HeaderDataId(3),
  30. Description("Event Type") : amended,
  31. read]
  32. uint8 EventType;
  33. [HeaderDataId(4),
  34. Description("Trace Level") : amended,
  35. read]
  36. uint8 TraceLevel;
  37. [HeaderDataId(5),
  38. Description("Trace Version") : amended,
  39. read]
  40. uint16 TraceVersion;
  41. [HeaderDataId(6),
  42. Description("Thread Id") : amended,
  43. PointerType,
  44. read]
  45. uint64 ThreadId;
  46. [HeaderDataId(7),
  47. Description("TimeStamp") : amended,
  48. read]
  49. uint64 TimeStamp;
  50. [HeaderDataId(8),
  51. Description("Event Guid") : amended,
  52. read]
  53. uint8 EventGuid[16];
  54. [HeaderDataId(9),
  55. Description("Kernel Time") : amended,
  56. read]
  57. uint32 KernelTime;
  58. [HeaderDataId(10),
  59. Description("User Time") : amended,
  60. read]
  61. uint32 UserTime;
  62. [HeaderDataId(11),
  63. Description("Instance Id") : amended,
  64. read]
  65. uint32 InstanceId;
  66. [HeaderDataId(12),
  67. Description("Parent Guid") : amended,
  68. read]
  69. uint8 ParentGuid[16];
  70. [HeaderDataId(13),
  71. Description("Parent Instance Id") : amended,
  72. read]
  73. uint32 ParentInstanceId;
  74. [HeaderDataId(14),
  75. Description("Pointer to Mof Data") : amended,
  76. PointerType,
  77. read]
  78. uint32 MofData;
  79. [HeaderDataId(15),
  80. Description("Length of Mof Data") : amended,
  81. read]
  82. uint32 MofLength;
  83. };
  84. instance of __Win32Provider as $P1
  85. {
  86. Name = "EventTraceProv";
  87. ClsId = "{9a5dd473-d410-11d1-b829-00c04f94c7c3}";
  88. HostingModel = "NetworkServiceHost";
  89. UnloadTimeout = "00000000010000.000000:000";
  90. };
  91. instance of __InstanceProviderRegistration
  92. {
  93. Provider = $P1;
  94. SupportsGet = TRUE;
  95. SupportsPut = TRUE;
  96. SupportsDelete = TRUE;
  97. SupportsEnumeration = TRUE;
  98. QuerySupportLevels = {"WQL:UnarySelect"};
  99. };
  100. instance of __MethodProviderRegistration
  101. {
  102. Provider = $P1;
  103. };
  104. [Dynamic, Provider ("EventTraceProv")]
  105. class TraceLogger
  106. {
  107. [read, key] String Name;
  108. [DisplayName("File Name"):ToInstance Amended, read, write ] String LogFileName;
  109. [read, write] String Guid[];
  110. [read, write] uint32 EnableFlags[];
  111. [read, write] uint32 Level[];
  112. [DisplayName("Buffer Size"):ToInstance Amended, read, write] uint32 BufferSize;
  113. [DisplayName("Minimum Buffers"):ToInstance Amended, read, write] uint32 MinimumBuffers;
  114. [DisplayName("Maximum Buffers"):ToInstance Amended, read, write] uint32 MaximumBuffers;
  115. [DisplayName("Maximum File Size"):ToInstance Amended, read, write] uint32 MaximumFileSize;
  116. [DisplayName("Clock Type"):ToInstance Amended,
  117. read, write,
  118. DefaultValue("system"):ToInstance,
  119. ValueType("index"):ToInstance,
  120. ValueDescriptions{
  121. "High Performance Clock",
  122. "System Clock",
  123. "CPU Cycles"
  124. }:Amended,
  125. Values{
  126. "Perf",
  127. "System",
  128. "Cycle"
  129. }:ToInstance,
  130. ValueMap{
  131. "0x01",
  132. "0x02",
  133. "0x03"
  134. }:ToInstance ] String ClockType;
  135. [DisplayName("File Mode"):ToInstance Amended,
  136. read, write,
  137. DefaultValue("Sequential"):ToInstance,
  138. ValueType("flag"):ToInstance,
  139. ValueDescriptions{
  140. "Log sequentially",
  141. "Log in circular manner",
  142. "Append sequential log",
  143. "Auto-switch log file",
  144. "Pre-allocate log file",
  145. "Real time mode on",
  146. "Delay opening file",
  147. "Buffering mode only",
  148. "Process Private Logger",
  149. "Add a logfile header",
  150. "Use global sequence no.",
  151. "Use local sequence no.",
  152. "Relogger",
  153. "Use pageable buffers"
  154. }:Amended,
  155. Values{
  156. "Sequential",
  157. "Circular",
  158. "Append",
  159. "NewFile",
  160. "PreAlloc",
  161. "RealTime",
  162. "DelayOpen",
  163. "BufferOnly",
  164. "Private",
  165. "Header",
  166. "GlobalSequence",
  167. "LocalSequence",
  168. "Relog",
  169. "PagedMemory"
  170. }:ToInstance,
  171. DefineValues{
  172. "EVENT_TRACE_FILE_MODE_SEQUENTIAL",
  173. "EVENT_TRACE_FILE_MODE_CIRCULAR",
  174. "EVENT_TRACE_FILE_MODE_APPEND",
  175. "EVENT_TRACE_FILE_MODE_NEWFILE",
  176. "EVENT_TRACE_FILE_MODE_PREALLOCATE",
  177. "EVENT_TRACE_REAL_TIME_MODE",
  178. "EVENT_TRACE_DELAY_OPEN_FILE_MODE",
  179. "EVENT_TRACE_BUFFERING_MODE",
  180. "EVENT_TRACE_PRIVATE_LOGGER_MODE",
  181. "EVENT_TRACE_ADD_HEADER_MODE",
  182. "EVENT_TRACE_USE_GLOBAL_SEQUENCE",
  183. "EVENT_TRACE_USE_LOCAL_SEQUENCE",
  184. "EVENT_TRACE_RELOG_MODE",
  185. "EVENT_TRACE_USE_PAGED_MEMORY"
  186. },
  187. ValueMap{
  188. "0x00000001",
  189. "0x00000002",
  190. "0x00000004",
  191. "0x00000008",
  192. "0x00000020",
  193. "0x00000100",
  194. "0x00000200",
  195. "0x00000400",
  196. "0x00000800",
  197. "0x00001000",
  198. "0x00004000",
  199. "0x00008000",
  200. "0x00010000",
  201. "0x01000000"
  202. }:ToInstance ] String LogFileMode;
  203. [DisplayName("Flush Timer"):ToInstance Amended, read, write] uint32 FlushTimer;
  204. [DisplayName("Age Limit"):ToInstance Amended, read, write] uint32 AgeLimit;
  205. [DisplayName("Logger Id"):ToInstance Amended, read] uint64 LoggerId;
  206. [DisplayName("Number of buffers"):ToInstance Amended, read] uint32 NumberOfBuffers;
  207. [DisplayName("Buffers Free"):ToInstance Amended, read] uint32 FreeBuffers;
  208. [DisplayName("Events Lost"):ToInstance Amended, read] uint32 EventsLost;
  209. [DisplayName("Buffers Written"):ToInstance Amended, read] uint32 BuffersWritten;
  210. [DisplayName("Buffers Lost"):ToInstance Amended, read] uint32 LogBuffersLost;
  211. [DisplayName("Real Time Buffers Lost"):ToInstance Amended, read] uint32 RealTimeBuffersLost;
  212. [DisplayName("Logger Thread Id"):ToInstance Amended, read] uint32 LoggerThreadId;
  213. [Implemented] uint32 FlushTrace();
  214. [Implemented] uint32 StopTrace();
  215. [Implemented] uint32 EnableTrace( [IN] boolean Enable, [IN] uint32 Flags[], [IN] uint32 Level[], [IN] String Guid[] );
  216. };
  217. class EventTraceError : __ExtendedStatus
  218. {
  219. [read] String LoggerName;
  220. };
  221. ///////////////////////////////////////////////////////////////////////////////
  222. instance of __Win32Provider as $P2
  223. {
  224. Name = "SmonlogProv";
  225. ClsId = "{f95e1664-7979-44f2-a040-496e7f500043}";
  226. HostingModel = "NetworkServiceHost";
  227. };
  228. instance of __InstanceProviderRegistration
  229. {
  230. Provider = $P2;
  231. SupportsGet = TRUE;
  232. SupportsPut = TRUE;
  233. SupportsDelete = TRUE;
  234. SupportsEnumeration = TRUE;
  235. QuerySupportLevels = {"WQL:UnarySelect"};
  236. };
  237. instance of __MethodProviderRegistration
  238. {
  239. Provider = $P2;
  240. };
  241. [Dynamic, Provider ("SmonlogProv")]
  242. class SysmonLog
  243. {
  244. [read, key] String Name;
  245. [Implemented] uint32 SetRunAs( [IN] String User, [IN] String Password );
  246. };
  247. class SmonLogError : __ExtendedStatus
  248. {
  249. [read] String ConfigName;
  250. };
  251. ///////////////////////////////////////////////////////////////////////////////
  252. #pragma namespace("\\\\.\\Root")
  253. instance of __Namespace
  254. {
  255. Name = "perfmon";
  256. };
  257. #pragma namespace ("\\\\.\\root\\perfmon")
  258. instance of __Win32Provider as $P3
  259. {
  260. Name = "SmonlogProv";
  261. ClsId = "{f95e1664-7979-44f2-a040-496e7f500043}";
  262. HostingModel = "NetworkServiceHost";
  263. };
  264. instance of __InstanceProviderRegistration
  265. {
  266. Provider = $P3;
  267. SupportsGet = TRUE;
  268. SupportsPut = TRUE;
  269. SupportsDelete = TRUE;
  270. SupportsEnumeration = TRUE;
  271. QuerySupportLevels = {"WQL:UnarySelect"};
  272. };
  273. instance of __MethodProviderRegistration
  274. {
  275. Provider = $P3;
  276. };
  277. [Dynamic, Provider ("SmonlogProv")]
  278. class SysmonLog
  279. {
  280. [read, key] String Name;
  281. [Implemented] uint32 SetRunAs( [IN] String User, [IN] String Password );
  282. };
  283. class SmonLogError : __ExtendedStatus
  284. {
  285. [read] String ConfigName;
  286. };