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.

603 lines
25 KiB

  1. [Dynamic, Provider("CIMWin32"),
  2. Description ("The Win32_PCMCIAController class manages the "
  3. "capabilities of a Personal Computer Memory Card Interface "
  4. "Adapter (PCMCIA of PC card) controller device."): ToSubClass,
  5. Locale (0x409), UUID ("{98C7E2C6-D592-11d2-B355-00105A0A323A}") ]
  6. class Win32_PCMCIAController: CIM_PCMCIAController
  7. {
  8. [Read: ToSubClass, Override("DeviceId"): ToSubClass, Key: ToSubClass,
  9. Description ("The DeviceID property indicates the number "
  10. "that uniquely identifies this device with other peripherals "
  11. "using the Plug and Play BIOS. This property is derived "
  12. "from CIM_LogicalDevice."): ToSubClass,
  13. MappingStrings {"WMI"}: ToSubClass]
  14. string DeviceID ;
  15. };
  16. [Description ("The Win32_1394Controller class represents the "
  17. "capabilities and management of a 1394 controller. IEEE 1394 "
  18. "is a specification for a high speed serial bus."),
  19. dynamic, provider("CIMWin32"),
  20. Locale (0x409), UUID ("{2A7DC003-BAEF-11d2-85E5-0000F8102E5F}") ]
  21. class Win32_1394Controller : CIM_Controller
  22. {
  23. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  24. Description ("The DeviceID property contains a string "
  25. "uniquely identifying the 1394 controller with other "
  26. "devices on the system."): ToSubClass,
  27. MappingStrings {"WMI"}: ToSubClass]
  28. string DeviceID ;
  29. [read : ToSubClass,
  30. Description ("The Manufacturer property indicates the name of the "
  31. "manufacturer of the 1394 controller. \nExample: Acme"): ToSubClass,
  32. MappingStrings {"Win32Registry"}: ToSubClass ]
  33. string Manufacturer ;
  34. };
  35. [Dynamic, Provider ("CIMWin32"),
  36. Description ("The Win32_MotherboardDevice class represents a device "
  37. "that contains the central components of the Win32 computer system."
  38. "\nExample: A single piece of hardware containing a processor, bus, "
  39. "memory, and basic system interfaces"): ToSubClass,
  40. Locale (0x409), UUID ("{8502C4BA-5FBB-11D2-AAC1-006008C78BC7}") ]
  41. class Win32_MotherboardDevice:CIM_LogicalDevice
  42. {
  43. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  44. Description ("The DeviceID property contains a string "
  45. "that uniquely identifies this motherboard."): ToSubClass,
  46. MappingStrings {"WMI"}: ToSubClass]
  47. string DeviceID ;
  48. [read : ToSubClass,
  49. Description ("The PrimaryBusType property indicates the primary bus "
  50. "type of the motherboard.\nExample: PCI"): ToSubClass,
  51. MappingStrings {"Win32Registry|HKEY_LOCAL_MACHINE\\HARDWARE\\"
  52. "DESCRIPTION\\System\\MultifunctionAdapter|Identifier"}: ToSubClass]
  53. string PrimaryBusType ;
  54. [read : ToSubClass,
  55. Description ("The RevisionNumber property indicates the revision "
  56. "number of the motherboard.\nExample: 00"): ToSubClass,
  57. MappingStrings {"Win32Registry|HKEY_LOCAL_MACHINE\\HARDWARE\\"
  58. "DESCRIPTION\\System"}: ToSubClass]
  59. string RevisionNumber ;
  60. [read : ToSubClass,
  61. Description ("The SecondaryBusType property indicates the secondary "
  62. "bus type of the motherboard.\nExample: ISA"): ToSubClass,
  63. MappingStrings {"Win32Registry|HKEY_LOCAL_MACHINE\\HARDWARE\\"
  64. "DESCRIPTION\\System\\MultifunctionAdapter|Identifier"}: ToSubClass]
  65. string SecondaryBusType ;
  66. };
  67. [Dynamic, Provider ("CIMWin32"),
  68. Description ("The Win32_1394ControllerDevice class represents an "
  69. "association between the high-speed serial bus (IEEE 1394 Firewire) "
  70. "Controller and the CIM_LogicalDevice connected to it. This serial "
  71. "bus provides enhanced connectivity for a wide range of devices, "
  72. "including consumer audio/video components, storage peripherals, "
  73. "other computers, and portable devices. IEEE 1394 has been adopted "
  74. "by the consumer electronics industry and provides a Plug and "
  75. "Play-compatible expansion interface."): ToSubClass,
  76. Locale (0x409), UUID ("{8835CFC9-BAEF-11d2-85E5-0000F8102E5F}")]
  77. class Win32_1394ControllerDevice : CIM_ControlledBy
  78. {
  79. [read:ToSubClass, key: ToSubClass, Override ("Dependent"): ToSubClass,
  80. Description ("The CIM_LogicalDevice dependent reference represents "
  81. "the CIM_LogicalDevice connected to the 1394 controller."): ToSubClass,
  82. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  83. CIM_LogicalDevice REF Dependent;
  84. [read:ToSubClass, key: ToSubClass, Override ("Antecedent"): ToSubClass,
  85. Description ("The Win32_1394Controller antecedent "
  86. "reference represents the 1394 controller associated "
  87. "with this device."): ToSubClass,
  88. MappingStrings {"WMI|Win32_1394Controller"}: ToSubClass ]
  89. Win32_1394Controller REF Antecedent;
  90. };
  91. [Dynamic, Provider("CIMWin32"),
  92. Description ("The Win32_IDEController class manages the capabilities "
  93. "of an IDE controller device."): ToSubClass,
  94. Locale (0x409), UUID ("{9ABA5122-C7A1-11d2-911D-0060081A46FD}") ]
  95. class Win32_IDEController : CIM_Controller
  96. {
  97. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  98. Description ("The DeviceID property indicates a string "
  99. "that uniquely identifies the IDE controller with other "
  100. "devices on the system."): ToSubClass,
  101. MappingStrings {"WMI"}: ToSubClass]
  102. string DeviceID ;
  103. [read : ToSubClass ,
  104. Description ("The Manufacturer property indicates the manufacturer "
  105. "of the IDE controller device."): ToSubClass,
  106. MappingStrings {"Win32Registry"}: ToSubClass ]
  107. string Manufacturer ;
  108. };
  109. [Dynamic, Provider ("CIMWin32"),
  110. Description ("The Win32_IDEControllerDevice class represents an "
  111. "association between an Integrated Drive Electronics (IDE) "
  112. "controller and the logical device, for example, a disk drive, "
  113. "connected to it."): ToSubClass,
  114. Locale (0x409), UUID ("{5BC42B62-C7A1-11d2-911D-0060081A46FD}")]
  115. class Win32_IDEControllerDevice : CIM_ControlledBy
  116. {
  117. [Read: ToSubClass, Key: ToSubClass, Override ("Dependent"): ToSubClass,
  118. Description ("The Dependent reference represents the CIM_LogicalDevice "
  119. "connected to the IDE controller."): ToSubClass,
  120. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  121. CIM_LogicalDevice REF Dependent;
  122. [Read: ToSubClass, Key: ToSubClass, Override ("Antecedent"): ToSubClass,
  123. Description ("The Antecedent reference represents the IDE controller "
  124. "associated with this device."): ToSubClass,
  125. MappingStrings {"CIM|Win32_IDEController"}: ToSubClass]
  126. Win32_IDEController REF Antecedent;
  127. };
  128. [Abstract,
  129. Description ("The Win32_DeviceSettings class represents an "
  130. "association between a logical device and a setting that can be "
  131. "applied to it."): ToSubClass,
  132. Locale (0x409), UUID ("{8502C4FD-5FBB-11D2-AAC1-006008C78BC7}") ]
  133. class Win32_DeviceSettings:CIM_ElementSetting
  134. {
  135. [read: ToSubClass, key: ToSubClass, Override ("Element"): ToSubClass ,
  136. Description ("The Element reference represents "
  137. "properties of the logical device on which the "
  138. "settings can be applied."): ToSubClass,
  139. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  140. CIM_LogicalDevice REF Element;
  141. [read: ToSubClass, key: ToSubClass, Override ("Setting"): ToSubClass ,
  142. Description ("The Setting reference represents "
  143. "settings that can be applied to the logical "
  144. "device."): ToSubClass,
  145. MappingStrings {"CIM|CIM_Setting"}: ToSubClass]
  146. CIM_Setting REF Setting;
  147. };
  148. [DEPRECATED, Dynamic, Provider ("CIMWin32") ,
  149. Description ("The Win32_AllocatedResource class represents an "
  150. "association between logical devices and system resources. This "
  151. "class is used to discover which resources, such as IRQs, or DMA "
  152. "channels, are in-use by a specific device. This class has been "
  153. "deprecated in favor of the Win32_PNPAllocatedResource class."): ToSubClass,
  154. Locale (0x409), UUID ("{8502C50D-5FBB-11D2-AAC1-006008C78BC7}") ]
  155. class Win32_AllocatedResource:CIM_Dependency
  156. {
  157. [Key: ToSubClass, Override ("Antecedent"): ToSubClass,
  158. Description ("The Antecedent reference represents the properties of a "
  159. "system resource available to the logical device."): ToSubClass,
  160. MappingStrings {"CIM|CIM_SystemResource"}: ToSubClass]
  161. CIM_SystemResource REF Antecedent;
  162. [Key: ToSubClass, Override ("Dependent"): ToSubClass,
  163. Description ("The Dependent reference represents the properties of the "
  164. "logical device that is using the system resources assigned to it."): ToSubClass,
  165. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  166. CIM_LogicalDevice REF Dependent;
  167. };
  168. [Dynamic, Provider ("CIMWin32") ,
  169. Description ("The Win32_AllocatedResource class represents an "
  170. "association between logical devices and system resources. This "
  171. "class is used to discover which resources, such as IRQs, or DMA "
  172. "channels, are in-use by a specific device."): ToSubClass,
  173. Locale (0x409), UUID ("970C0998-41FE-4275-B7D9-7DABAD3FBC4D") ]
  174. class Win32_PNPAllocatedResource:CIM_AllocatedResource
  175. {
  176. [Key: ToSubClass, Override ("Antecedent"): ToSubClass,
  177. Description ("The Antecedent reference represents the properties of a "
  178. "system resource available to the logical device."): ToSubClass,
  179. MappingStrings {"CIM|CIM_SystemResource"}: ToSubClass]
  180. CIM_SystemResource REF Antecedent;
  181. [Key: ToSubClass, Override ("Dependent"): ToSubClass,
  182. Description ("The Dependent reference represents the properties of the "
  183. "logical device that is using the system resources assigned to it."): ToSubClass,
  184. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  185. Win32_PNPEntity REF Dependent;
  186. };
  187. [Dynamic, Provider ("CIMWin32"),
  188. Description ("The Win32_Bus class represents a physical bus as "
  189. "seen by a Win32 operating system. Any instance of a Win32 bus "
  190. "is a descendent (or member) of this class."
  191. "\nExample: USB Bus."): ToSubClass,
  192. Locale (0x409), UUID ("{8502C50E-5FBB-11D2-AAC1-006008C78BC7}") ]
  193. class Win32_Bus:CIM_LogicalDevice
  194. {
  195. [Key: ToSubClass, Read: ToSubClass, Override("DeviceId"),
  196. Description ("The DeviceID property contains a unique name that "
  197. "identifies the bus."): ToSubClass,
  198. MappingStrings {"WMI"}: ToSubClass]
  199. string DeviceID ;
  200. [read: ToSubClass,
  201. Description ("The BusNum property indicates the logical number "
  202. "assigned to the physical bus.\nExample: 1"): ToSubClass,
  203. MappingStrings {"WMI"}: ToSubClass]
  204. uint32 BusNum ;
  205. [read: ToSubClass,
  206. Description ("The BusType property indicates the type of the "
  207. "physical bus. This value will be one of the values in the "
  208. "INTERFACE_TYPE enumeration defined in bus.h."
  209. "\nExample: PCIBus"): ToSubClass,
  210. MappingStrings {"Win32API|cHwRes|INTERFACE_TYPE"}: ToSubClass,
  211. Values {"Undefined", "Internal", "ISA", "EISA", "MicroChannel", "TurboChannel",
  212. "PCI Bus", "VME Bus", "NuBus", "PCMCIA Bus", "C Bus", "MPI Bus", "MPSA Bus",
  213. "Internal Processor", "Internal Power Bus", "PNP ISA Bus", "PNP Bus",
  214. "Maximum Interface Type"}: ToSubClass,
  215. ValueMap {"-1", "0", "1", "2", "3", "4", "5", "6", "7",
  216. "8", "9", "10", "11", "12", "13", "14", "15", "16"}: ToSubClass]
  217. uint32 BusType ;
  218. };
  219. [Dynamic, Provider ("CIMWin32"),
  220. Description ("The Win32_DeviceBus class represents an association "
  221. "between a system bus and a logical device using the bus. This class "
  222. "is used to discover which devices are on which bus."): ToSubClass,
  223. Locale (0x409), UUID ("{8502C50F-5FBB-11D2-AAC1-006008C78BC7}"): ToSubClass ]
  224. class Win32_DeviceBus:CIM_Dependency
  225. {
  226. [Read: ToSubClass, Key: ToSubClass, Override ("Antecedent"): ToSubClass ,
  227. Description ("The Antecedent reference represents the properties of "
  228. "the system bus that is used by the logical device."): ToSubClass,
  229. MappingStrings {"WMI|Win32_Bus"}: ToSubClass]
  230. Win32_Bus REF Antecedent;
  231. [Read: ToSubClass, Key: ToSubClass, Override ("Dependent"): ToSubClass ,
  232. Description ("The Dependent reference represents the properties of the "
  233. "logical device that is using the system bus."): ToSubClass,
  234. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  235. CIM_LogicalDevice REF Dependent;
  236. };
  237. [Dynamic, Provider ("CIMWin32"),
  238. Description ("The Win32_CIMLogicalDeviceCIMDataFile class represents "
  239. "an association between logical devices and data files, indicating "
  240. "the driver files used by the device. This class is used "
  241. "to discover which device drivers a device uses."): ToSubClass,
  242. Locale (0x409), UUID ("{8502C510-5FBB-11D2-AAC1-006008C78BC7}") ]
  243. class Win32_CIMLogicalDeviceCIMDataFile:CIM_Dependency
  244. {
  245. [read: ToSubClass, Key: ToSubClass, Override ("Antecedent"): ToSubClass,
  246. Description ("The Antecedent reference represents the properties of "
  247. "the logical device that is being used by the data file."): ToSubClass,
  248. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  249. CIM_LogicalDevice REF Antecedent;
  250. [read: ToSubClass, Key: ToSubClass, Override ("Dependent"): ToSubClass ,
  251. Description ("The Dependent reference represents the properties of "
  252. "the data file assigned to the logical device."): ToSubClass,
  253. MappingStrings {"CIM|CIM_DataFile"}: ToSubClass ]
  254. CIM_DataFile REF Dependent;
  255. [Read: ToSubClass,
  256. Description ("The Purpose property indicates the role that the data file "
  257. "plays with regard to its associated logical device."): ToSubClass,
  258. MappingStrings {"CIM"}: ToSubClass,
  259. Values {"Unknown", "Other", "Driver", "Configuration Software",
  260. "Application Software", "Instrumentation", "Firmware"}: ToSubClass]
  261. uint16 Purpose ;
  262. [Read: ToSubClass,
  263. Description ("The PurposeDescription property provides a description "
  264. "that extends the value of the Purpose property of this class."
  265. "\nExample: Floppy Disk Driver"): ToSubClass,
  266. MappingStrings {"CIM"}: ToSubClass]
  267. string PurposeDescription ;
  268. };
  269. [Dynamic, Provider ("CIMWin32"),
  270. Description ("The Win32_OnBoardDevice class represents "
  271. "common adapter devices built into the motherboard "
  272. "(system board)."): ToSubClass,
  273. Locale (0x409), UUID ("{AEECF151-D0EA-11d2-ABFC-00805F538618}") ]
  274. class Win32_OnBoardDevice : CIM_PhysicalComponent
  275. {
  276. [read: ToSubClass, Key: ToSubClass,
  277. MaxLen (256): ToSubClass, Override ("Tag"): ToSubClass,
  278. Description ("The Tag property uniquely "
  279. "identifies the on-board device connected to the system."
  280. "\nExample: On Board Device 1"): ToSubClass,
  281. MappingStrings {"WMI"}: ToSubClass]
  282. string Tag;
  283. [read: ToSubClass,
  284. Description( "The DeviceType property indicates the type of "
  285. "device being represented."): ToSubClass,
  286. MappingStrings {"SMBIOS|Type 10|Device Type n"}: ToSubClass,
  287. Values {"Other", "Unknown", "Video", "SCSI Controller", "Ethernet",
  288. "Token Ring", "Sound"}: ToSubClass,
  289. ValueMap {"1", "2", "3", "4", "5", "6", "7"}: ToSubClass]
  290. uint16 DeviceType;
  291. [read: ToSubClass,
  292. Description( "The Enabled property indicates whether or not the "
  293. "on-board device is available for use.\nValues: TRUE or FALSE. "
  294. "A value of TRUE indicates the device is enabled for use."): ToSubClass,
  295. MappingStrings {"SMBIOS|Type 10|Device Status n"}: ToSubClass]
  296. boolean Enabled;
  297. [read: ToSubClass, Override("Description"): ToSubClass,
  298. Description ("The Description property describes the on-"
  299. "board device and is filled by the manufacturer of the "
  300. "device."): ToSubClass,
  301. MappingStrings {"SMBIOS|Type 10|Description"}: ToSubClass]
  302. string Description;
  303. };
  304. [Dynamic, Provider ("CIMWin32") ,
  305. Description ("The Win32_VoltageProbe class represents the properties "
  306. "of a voltage sensor (electronic voltmeter)."): ToSubClass,
  307. Locale (0x409), UUID ("{464FFAB8-946F-11d2-AAE2-006008C78BC7}") ]
  308. class Win32_VoltageProbe : CIM_VoltageSensor
  309. {
  310. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  311. Description ("The DeviceID property contains a string identifying "
  312. "the voltage probe."): ToSubClass,
  313. MappingStrings {"WMI"}: ToSubClass]
  314. string DeviceID ;
  315. };
  316. [Dynamic, Provider ("CIMWin32") ,
  317. Description ("The Win32_CurrentProbe class represents the properties "
  318. "of a current monitoring sensor (ammeter)."): ToSubClass,
  319. Locale (0x409), UUID ("{464FFABA-946F-11d2-AAE2-006008C78BC7}") ]
  320. class Win32_CurrentProbe : CIM_CurrentSensor
  321. {
  322. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  323. Description ("The DeviceID property contains a string identifying "
  324. "the current probe."): ToSubClass,
  325. MappingStrings {"WMI"}: ToSubClass]
  326. string DeviceID ;
  327. };
  328. [Dynamic, Provider ("CIMWin32"),
  329. Description ("The Win32_TemperatureProbe class represents "
  330. "the properties of a temperature sensor (electronic "
  331. "thermometer)."): ToSubClass,
  332. Locale (0x409), UUID ("{464FFABB-946F-11d2-AAE2-006008C78BC7}") ]
  333. class Win32_TemperatureProbe : CIM_TemperatureSensor
  334. {
  335. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  336. Description ("The DeviceID property contains a string identifying "
  337. "the temperature probe."): ToSubClass,
  338. MappingStrings {"WMI"}: ToSubClass]
  339. string DeviceID ;
  340. };
  341. [Dynamic, Provider ("CIMWin32"),
  342. Description ("The Win32_Fan class represents the properties "
  343. "of a fan device in the computer system. For example, the CPU "
  344. "cooling fan."): ToSubClass,
  345. Locale (0x409), UUID ("{464FFAB5-946F-11d2-AAE2-006008C78BC7}") ]
  346. class Win32_Fan : CIM_Fan
  347. {
  348. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  349. Description ("The DeviceID property contains a string identifying "
  350. "the fan device."): ToSubClass,
  351. MappingStrings {"WMI"}: ToSubClass]
  352. string DeviceID ;
  353. };
  354. [Dynamic, Provider ("CIMWin32") ,
  355. Description ("The Win32_Refrigeration class represents the properties "
  356. "of a refrigeration device."): ToSubClass,
  357. Locale (0x409), UUID ("{464FFAB6-946F-11d2-AAE2-006008C78BC7}") ]
  358. class Win32_Refrigeration : CIM_Refrigeration
  359. {
  360. [Read: ToSubClass , Key: ToSubClass, Override("DeviceId"): ToSubClass,
  361. Description ("The DeviceID property contains a string identifying "
  362. "the refrigeration device."): ToSubClass,
  363. MappingStrings {"WMI"}: ToSubClass]
  364. string DeviceID ;
  365. };
  366. [Dynamic, Provider ("CIMWin32"),
  367. Description ("The Win32_HeatPipe class represents the properties "
  368. "of a heat pipe cooling device."): ToSubClass,
  369. Locale (0x409), UUID ("{464FFAB7-946F-11d2-AAE2-006008C78BC7}") ]
  370. class Win32_HeatPipe : CIM_HeatPipe
  371. {
  372. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  373. Description ("The DeviceID property contains a string identifying "
  374. "the heat pipe."): ToSubClass,
  375. MappingStrings {"WMI"}: ToSubClass]
  376. string DeviceID ;
  377. };
  378. [Dynamic, Provider("CIMWin32"),
  379. Description ("The Win32_PnPEntity class represents the "
  380. "properties of a Plug and Play device. Plug and Play "
  381. "entities are shown as entries in the Device Manager "
  382. "located in the Control Panel."): ToSubClass,
  383. Locale ( 0x409 ) , UUID ("{FE28FD98-C875-11d2-B352-00104BC97924}") ]
  384. class Win32_PnPEntity: CIM_LogicalDevice
  385. {
  386. [Read: ToSubClass, Key: ToSubClass, Override("DeviceId"): ToSubClass,
  387. Description ("The DeviceID property contains a string identifying "
  388. "the Plug and Play device."): ToSubClass,
  389. MappingStrings {"WMI"}: ToSubClass]
  390. string DeviceID ;
  391. [read: ToSubClass,
  392. Description ("The Manufacturer property contains the name of the "
  393. "manufacturer of the Plug and Play device.\nExample: Acme"): ToSubClass,
  394. MappingStrings {"WMI"}: ToSubClass]
  395. string Manufacturer ;
  396. [read: ToSubClass,
  397. Description ("The Service property contains the name of "
  398. "the service that supports this Plug and Play device. See also: "
  399. "Win32_SystemDriverPNPEntity class.\nExample: atapi"): ToSubClass,
  400. MappingStrings {"WMI"}: ToSubClass]
  401. string Service;
  402. [read: ToSubClass,
  403. Description ("The ClassGuid property contains the Globally "
  404. "Unique Identifier (GUID) that uniquely identifies "
  405. "this Plug and Play device."): ToSubClass,
  406. MappingStrings {"WMI"}: ToSubClass]
  407. string ClassGuid;
  408. };
  409. [Association, Dynamic, Provider ("CIMWin32"),
  410. Description ("The Win32_PnPDevice represents an association "
  411. "between a device (known to Config Manager as a PnPEntity), and "
  412. "the function it performs. Its function is represented by a subclass "
  413. "of the logical device that describes its use. For "
  414. "example, a Win32_Keyboard or Win32_DiskDrive. Both referenced "
  415. "objects represent the same underlying system device - "
  416. "changes to resource allocation on the PnPEntity side "
  417. "will effect the associated Device."): ToSubClass,
  418. Locale (0x409), UUID ("{FE28FD96-C875-11d2-B352-00104BC97924}") ]
  419. class Win32_PnPDevice
  420. {
  421. [Read: ToSubClass, Key: ToSubClass,
  422. Description ("The SystemElement reference represents the "
  423. "the Plug and Play device associated with the logical "
  424. "device."): ToSubClass,
  425. MappingStrings {"WMI|Win32_PnPEntity"}: ToSubClass]
  426. Win32_PnPEntity REF SystemElement;
  427. [Read: ToSubClass, Key: ToSubClass,
  428. Description ("The SameElement reference represents the "
  429. "logical device properties that are associated with the Plug and "
  430. "Play device."): ToSubClass,
  431. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass ]
  432. CIM_LogicalDevice REF SameElement;
  433. };
  434. //RuleBased("Select * From "
  435. // "Win32_SystemDriver As A "
  436. // "Join "
  437. // "Win32_PNPEntity As B "
  438. // "On A.Name = B.Service")
  439. [Dynamic, Provider ("CIMWin32"),
  440. Description ("The Win32_SystemDriverPNPEntity class represents "
  441. "an association between a Plug and Play device on the Win32 "
  442. "computer system and the driver that supports the Plug and Play "
  443. "device."): ToSubClass,
  444. Locale(0x409), UUID("{0800F074-CB98-11d2-B35D-00104BC97924}") ]
  445. class Win32_SystemDriverPNPEntity: CIM_Dependency
  446. {
  447. [Read: ToSubClass, Key: ToSubClass,
  448. Override ("Dependent"): ToSubClass,
  449. Description ("The Dependent reference represents the driver "
  450. "that supports the Plug and Play device."): ToSubClass,
  451. MappingStrings {"WMI|Win32_SystemDriver"}: ToSubClass]
  452. Win32_SystemDriver REF Dependent;
  453. [Read: ToSubClass, Key: ToSubClass,
  454. Override ("Antecedent"): ToSubClass,
  455. Description ("The Antecedent reference represents the Plug and "
  456. "Play device controlled by the driver."): ToSubClass,
  457. MappingStrings {"WMI|Win32_PNPEntity"}: ToSubClass]
  458. Win32_PNPEntity REF Antecedent;
  459. };
  460. [Description ("The Win32_DeviceChangeEvent class represents device change "
  461. "events resulting from the addition, removal or modification of devices "
  462. "on the computer system. This includes changes in the hardware "
  463. "configuration (docking and undocking), the hardware state, or newly "
  464. "mapped devices (mapping of a network drive). For example, a "
  465. "device has changed when a WM_DEVICECHANGE message is sent."),
  466. Locale (0x409), UUID ("0DE6AAF8-49F1-4868-B3D4-61CB69BA4322") ]
  467. class Win32_DeviceChangeEvent : __ExtrinsicEvent
  468. {
  469. [Read: ToSubClass, Description ("The EventType property indicates what type of device "
  470. "change notification event has occurred."),
  471. MappingStrings{"Win32APIDevice Management Messages|WM_DEVICECHANGE|wParam",
  472. "Win32APIDevice Management Messages|WM_SETTINGCHANGE"},
  473. ValueMap{"1", "2", "3","4"}: ToSubClass,
  474. Values{"Configuration Changed", "Device Arrival", "Device Removal",
  475. "Docking"}: ToSubClass
  476. ]
  477. uint16 EventType;
  478. };
  479. instance of __Win32Provider as $VolumeChangeEvent
  480. {
  481. Name = "VolumeChangeEvents";
  482. ClsId = "{E2CBCB87-9C07-4523-A78F-061499C83987}";
  483. HostingModel = "LocalSystemHost";
  484. };
  485. [Description ("The Win32_VolumeChangeEvent class represents a local drive "
  486. "event resulting from the addition of a drive letter or mounted drive on "
  487. "the computer system (e.g. CDROM). Network drives are not currently supported."),
  488. Locale (0x409), UUID ("455CE053-2552-4051-A3E4-C4200DC31B7") ]
  489. class Win32_VolumeChangeEvent : Win32_DeviceChangeEvent
  490. {
  491. [Read, Description ("The DriveName property contains the drive name (letter) "
  492. "from the volume that has been added or removed from the system.")
  493. ]
  494. string DriveName;
  495. };
  496. instance of __EventProviderRegistration
  497. {
  498. Provider = $VolumeChangeEvent;
  499. EventQueryList = {"select * from Win32_VolumeChangeEvent"};
  500. };
  501. instance of __Win32Provider as $SystemConfigurationChangeEvent
  502. {
  503. Name = "SystemConfigurationChangeEvents";
  504. ClsId = "{D31B6A3F-9350-40de-A3FC-A7EDEB9B7C63}";
  505. HostingModel = "LocalSystemHost";
  506. };
  507. [Description ("The Win32_SystemConfigurationChangeEvent is an event class "
  508. "which indicates that the device list on the system has been refreshed. "
  509. "Refreshed meaning: a device has been added, removed, or the configuration "
  510. "changed. This event is fired when the windows message "
  511. "'DevMgrRefreshOn<ComputerName>' is sent. The exact change to the device "
  512. "list is not contained in the message and therefore a device refresh is "
  513. "required in order to obtain the current system settings. Examples of "
  514. "configuration changes affected are IRQ settings, COM ports and BIOS "
  515. "version, to name a few." ),
  516. Locale (0x409), UUID ("76746942-D94B-47E2-BBA4-AFD2FDBA61") ]
  517. class Win32_SystemConfigurationChangeEvent : Win32_DeviceChangeEvent
  518. {
  519. };
  520. instance of __EventProviderRegistration
  521. {
  522. Provider = $SystemConfigurationChangeEvent;
  523. EventQueryList = {"select * from Win32_SystemConfigurationChangeEvent"};
  524. };