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.

165 lines
5.1 KiB

  1. #pragma namespace ("\\\\.\\root\\wmi")
  2. instance of __Win32Provider as $P1
  3. {
  4. Name = "EventTraceProv";
  5. ClsId = "{9a5dd473-d410-11d1-b829-00c04f94c7c3}";
  6. HostingModel = "NetworkServiceHost";
  7. UnloadTimeout = "00000000010000.000000:000";
  8. };
  9. instance of __InstanceProviderRegistration
  10. {
  11. Provider = $P1;
  12. SupportsGet = TRUE;
  13. SupportsPut = TRUE;
  14. SupportsDelete = TRUE;
  15. SupportsEnumeration = TRUE;
  16. QuerySupportLevels = {"WQL:UnarySelect"};
  17. };
  18. instance of __MethodProviderRegistration
  19. {
  20. Provider = $P1;
  21. };
  22. [Dynamic, Provider ("EventTraceProv")]
  23. class TraceLogger
  24. {
  25. [read, key] String Name;
  26. [DisplayName("File Name"):ToInstance Amended, read, write ] String LogFileName;
  27. [read, write] String Guid[];
  28. [read, write] uint32 EnableFlags[];
  29. [read, write] uint32 Level[];
  30. [DisplayName("Buffer Size"):ToInstance Amended, read, write] uint32 BufferSize;
  31. [DisplayName("Minimum Buffers"):ToInstance Amended, read, write] uint32 MinimumBuffers;
  32. [DisplayName("Maximum Buffers"):ToInstance Amended, read, write] uint32 MaximumBuffers;
  33. [DisplayName("Maximum File Size"):ToInstance Amended, read, write] uint32 MaximumFileSize;
  34. [DisplayName("File Mode"):ToInstance Amended,
  35. read, write,
  36. DefaultValue("Sequential"):ToInstance,
  37. ValueDescriptions{
  38. "Log sequentially",
  39. "Log in circular manner",
  40. "Append sequential log",
  41. "Auto-switch log file",
  42. "Pre-allocate log file",
  43. "Real time mode on",
  44. "Delay opening file",
  45. "Buffering mode only",
  46. "Process Private Logger",
  47. "Add a logfile header",
  48. "Use global sequence no.",
  49. "Use local sequence no.",
  50. "Relogger",
  51. "Use pageable buffers"
  52. }:Amended,
  53. Values{
  54. "Sequential",
  55. "Circular",
  56. "Append",
  57. "NewFile",
  58. "PreAlloc",
  59. "RealTime",
  60. "DelayOpen",
  61. "BufferOnly",
  62. "Private",
  63. "Header",
  64. "GlobalSequence",
  65. "LocalSequence",
  66. "Relog",
  67. "PagedMemory"
  68. }:ToInstance,
  69. DefineValues{
  70. "EVENT_TRACE_FILE_MODE_SEQUENTIAL",
  71. "EVENT_TRACE_FILE_MODE_CIRCULAR",
  72. "EVENT_TRACE_FILE_MODE_APPEND",
  73. "EVENT_TRACE_FILE_MODE_NEWFILE",
  74. "EVENT_TRACE_FILE_MODE_PREALLOCATE",
  75. "EVENT_TRACE_REAL_TIME_MODE",
  76. "EVENT_TRACE_DELAY_OPEN_FILE_MODE",
  77. "EVENT_TRACE_BUFFERING_MODE",
  78. "EVENT_TRACE_PRIVATE_LOGGER_MODE",
  79. "EVENT_TRACE_ADD_HEADER_MODE",
  80. "EVENT_TRACE_USE_GLOBAL_SEQUENCE",
  81. "EVENT_TRACE_USE_LOCAL_SEQUENCE",
  82. "EVENT_TRACE_RELOG_MODE",
  83. "EVENT_TRACE_USE_PAGED_MEMORY"
  84. },
  85. ValueMap{
  86. "0x00000001",
  87. "0x00000002",
  88. "0x00000004",
  89. "0x00000008",
  90. "0x00000020",
  91. "0x00000100",
  92. "0x00000200",
  93. "0x00000400",
  94. "0x00000800",
  95. "0x00001000",
  96. "0x00004000",
  97. "0x00008000",
  98. "0x00010000",
  99. "0x01000000"
  100. }:ToInstance ] String LogFileMode;
  101. [DisplayName("Flush Timer"):ToInstance Amended, read, write] uint32 FlushTimer;
  102. [DisplayName("Age Limit"):ToInstance Amended, read, write] uint32 AgeLimit;
  103. [DisplayName("Logger Id"):ToInstance Amended, read] uint64 LoggerId;
  104. [DisplayName("Number of buffers"):ToInstance Amended, read] uint32 NumberOfBuffers;
  105. [DisplayName("Buffers Free"):ToInstance Amended, read] uint32 FreeBuffers;
  106. [DisplayName("Events Lost"):ToInstance Amended, read] uint32 EventsLost;
  107. [DisplayName("Buffers Written"):ToInstance Amended, read] uint32 BuffersWritten;
  108. [DisplayName("Buffers Lost"):ToInstance Amended, read] uint32 LogBuffersLost;
  109. [DisplayName("Real Time Buffers Lost"):ToInstance Amended, read] uint32 RealTimeBuffersLost;
  110. [DisplayName("Logger Thread Id"):ToInstance Amended, read] uint32 LoggerThreadId;
  111. [Implemented] uint32 FlushTrace();
  112. [Implemented] uint32 StopTrace();
  113. [Implemented] uint32 EnableTrace( [IN] boolean Enable, [IN] uint32 Flags[], [IN] uint32 Level[], [IN] String Guid[] );
  114. };
  115. class EventTraceError : __ExtendedStatus
  116. {
  117. [read] String LoggerName;
  118. };
  119. ///////////////////////////////////////////////////////////////////////////////
  120. instance of __Win32Provider as $P2
  121. {
  122. Name = "SmonlogProv";
  123. ClsId = "{f95e1664-7979-44f2-a040-496e7f500043}";
  124. HostingModel = "NetworkServiceHost";
  125. };
  126. instance of __InstanceProviderRegistration
  127. {
  128. Provider = $P2;
  129. SupportsGet = TRUE;
  130. SupportsPut = TRUE;
  131. SupportsDelete = TRUE;
  132. SupportsEnumeration = TRUE;
  133. QuerySupportLevels = {"WQL:UnarySelect"};
  134. };
  135. instance of __MethodProviderRegistration
  136. {
  137. Provider = $P2;
  138. };
  139. [Dynamic, Provider ("SmonlogProv")]
  140. class SysmonLog
  141. {
  142. [read, key] String Name;
  143. [Implemented] uint32 SetRunAs( [IN] String User, [IN] String Password );
  144. };
  145. class SmonLogError : __ExtendedStatus
  146. {
  147. [read] String ConfigName;
  148. };