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.

178 lines
4.7 KiB

  1. //*************************************************************
  2. // � 1998-1999 Microsoft Corporation. All rights reserved.
  3. //*************************************************************
  4. #pragma autorecover
  5. #pragma classflags("forceupdate")
  6. Qualifier Description : ToSubClass Amended;
  7. //*************************************************************
  8. //*** Creates namespace for WMI
  9. //*************************************************************
  10. #pragma namespace ("\\\\.\\Root")
  11. [Locale(0x409)]
  12. instance of __Namespace
  13. {
  14. Name = "WMI";
  15. };
  16. //*************************************************************
  17. //*** Changes focus to new namespace
  18. //*************************************************************
  19. #pragma namespace ("\\\\.\\Root\\WMI")
  20. [Description("WDM Provider Internal class."),Locale (0x409)]
  21. class WMIBinaryMofResource
  22. {
  23. [read,key] string Name;
  24. [read,key] uint32 LowDateTime ;
  25. [read,key] uint32 HighDateTime ;
  26. boolean MofProcessed;
  27. };
  28. [Description ("WDM Provider Internal class."),Locale (0x409)]
  29. class WDMClassesOfDriver
  30. {
  31. [read, key] string Driver ;
  32. [read, key] uint32 LowDateTime ;
  33. [read, key] uint32 HighDateTime ;
  34. [read, key] string ClassName;
  35. };
  36. instance of __Win32Provider as $P
  37. {
  38. Name = "WMIProv";
  39. ClsId = "{D2D588B5-D081-11d0-99E0-00C04FC2F8EC}" ;
  40. ClientLoadableCLSID= "{35B78F79-B973-48c8-A045-CAEC732A35D5}" ;
  41. PerUserInitialization = "TRUE";
  42. UnloadTimeOut = "00000000000500.000000:000";
  43. HostingModel = "LocalSystemHost";
  44. };
  45. instance of __InstanceProviderRegistration
  46. {
  47. Provider = $P;
  48. SupportsGet = "TRUE";
  49. SupportsPut = "TRUE";
  50. SupportsEnumeration = "TRUE";
  51. SupportsDelete = "FALSE";
  52. };
  53. instance of __MethodProviderRegistration
  54. {
  55. Provider = $P;
  56. };
  57. instance of __Win32Provider as $P1
  58. {
  59. Name = "WMIEventProv";
  60. ClsId = "{0725C3CB-FEFB-11d0-99F9-00C04FC2F8EC}";
  61. ImpersonationLevel = 1;
  62. PerUserInitialization = "TRUE";
  63. HostingModel = "LocalSystemHost";
  64. };
  65. [Description("This event class represents events for the provider"),Locale (0x409)]
  66. class WMIEvent : __ExtrinsicEvent
  67. {
  68. };
  69. instance of __EventProviderRegistration
  70. {
  71. Provider = $P1;
  72. EventQueryList = {"select * from WMIEvent"};
  73. };
  74. instance of __Win32Provider
  75. {
  76. ClientLoadableCLSID = "{B0A2AB46-F612-4469-BEC4-7AB038BC476C}";
  77. CLSID = "{B0A2AB46-F612-4469-BEC4-7AB038BC476C}";
  78. Name = "HiPerfCooker_v1";
  79. HostingModel = "LocalSystemHost";
  80. };
  81. Instance of __InstanceProviderRegistration
  82. {
  83. provider = "\\\\.\\root\\wmi:__Win32Provider.Name=\"HiPerfCooker_v1\"";
  84. SupportsEnumeration = TRUE;
  85. SupportsGet = TRUE;
  86. };
  87. [Description (
  88. "The PrivilegesStatus class reports information about privileges required "
  89. "to complete an operation. It may be returned when an operation failed, "
  90. "or when a partially populated instance has been returned."): ToSubClass,
  91. Locale (0x409), UUID ("{BE46D060-7A7C-11d2-BC85-00104B2CF71C}") ]
  92. class Win32_PrivilegesStatus:__ExtendedStatus
  93. {
  94. [read, Description (
  95. "Privilege(s) that are currently known to be required and "
  96. "are not held causing the operation to fail. "
  97. "Example: SE_SHUTDOWN_NAME"): ToSubClass ]
  98. string PrivilegesNotHeld[ ];
  99. [read, Description (
  100. "All privileges that may be required to perform the operation whether "
  101. "currently held or not. This may be a subset or all of the priviliges "
  102. "named in the schema privilege qualifiers and a superset of the "
  103. "PrivilegesNotHeld array property."): ToSubClass]
  104. string PrivilegesRequired[ ];
  105. };
  106. [Abstract, Description ("This is an abstract base class for Hiperf provider"),
  107. Locale(1033):ToInstance, UUID("{956597A1-7D80-11D2-AAD3-006008C78BC7}:ToInstance")]
  108. class CIM_StatisticalInformation
  109. {
  110. [read: ToSubClass, MaxLen(256): ToSubClass] string Name;
  111. [read: ToSubClass] string Description;
  112. [read: ToSubClass, MaxLen(64): ToSubClass] string Caption;
  113. };
  114. [abstract, Description ("This is an abstract base class for Hiperf provider") , Locale(1033)]
  115. class Win32_Perf : CIM_StatisticalInformation
  116. {
  117. uint64 Frequency_PerfTime;
  118. uint64 Timestamp_PerfTime;
  119. uint64 Timestamp_Sys100NS;
  120. uint64 Frequency_Sys100NS;
  121. uint64 Frequency_Object;
  122. uint64 Timestamp_Object;
  123. };
  124. [abstract, Description ("This is an abstract base class for Hiperf provider"), Locale(1033)]
  125. class Win32_PerfRawData : Win32_Perf
  126. {
  127. };
  128. [abstract,Description ("This is an abstract base class for Hiperf provider / cooked counter provider"), Locale(1033)]
  129. class Win32_PerfFormattedData : Win32_Perf
  130. {
  131. };
  132. instance of __ClassProviderRegistration
  133. {
  134. Provider = $P;
  135. InteractionType = 1;
  136. ResultSetQueries={"select * from meta_class"};
  137. ReferencedSetQueries={"select * from meta_class"};
  138. UnsupportedQueries=NULL;
  139. SupportsGet = "TRUE";
  140. SupportsPut = "FALSE";
  141. SupportsEnumeration = "TRUE";
  142. SupportsDelete = "FALSE";
  143. };