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.

155 lines
6.5 KiB

  1. [Dynamic, Provider ("CIMWin32") ,
  2. Description ("The Win32_Battery class represents a battery connected "
  3. "to the computer system. This class applies to both batteries in Laptop "
  4. "Systems and other internal/external batteries."): ToSubClass,
  5. Locale (0x409), UUID ("{8502C4B9-5FBB-11D2-AAC1-006008C78BC7}") ]
  6. class Win32_Battery:CIM_Battery
  7. {
  8. [Read: ToSubClass , Key: ToSubClass, Override("DeviceId"): ToSubClass,
  9. Description ("The DeviceID property contains a string identifying "
  10. "the battery.\nExample: Internal Battery"): ToSubClass,
  11. MappingStrings {"WMI"}: ToSubClass]
  12. string DeviceID ;
  13. [read: ToSubClass, DEPRECATED:ToSubClass, Units ("Minutes"): ToSubClass,
  14. Description ("The ExpectedBatteryLife property indicates the amount "
  15. "of time it takes to completely drain the battery after it has "
  16. "been fully charged. \n"
  17. "The ExpectedBatteryLife property has been deprecated. There is no replacement"
  18. "value and this property is now considered obsolete."): ToSubClass,
  19. MappingStrings {"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\"
  20. "Services|BatteryLife"}: ToSubClass]
  21. uint32 ExpectedBatteryLife ;
  22. [read: ToSubClass, DEPRECATED:ToSubClass, Units ("Minutes"): ToSubClass,
  23. Description ("The BatteryRechargeTime property indicates the time "
  24. "required to fully charge the battery. \n"
  25. "The BatteryRechargeTime property has been deprecated. There is no replacement"
  26. "value and this property is now considered obsolete."): ToSubClass,
  27. MappingStrings{"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\"
  28. "Services|RechargeRate"}: ToSubClass]
  29. uint32 BatteryRechargeTime ;
  30. };
  31. [Dynamic, Provider ("CIMWin32"),
  32. Description ("The Win32_AssociatedBattery represents an "
  33. "association between a logical device and the battery it "
  34. "is using."): ToSubClass,
  35. Locale (0x409), UUID ("{8502C50B-5FBB-11D2-AAC1-006008C78BC7}")]
  36. class Win32_AssociatedBattery:CIM_AssociatedBattery
  37. {
  38. [Key: ToSubClass, read: ToSubClass, Override ("Antecedent"): ToSubClass ,
  39. Description ("The Antecedent reference represents the properties of "
  40. "a battery used with the logical device."): ToSubClass,
  41. MappingStrings {"CIM|CIM_Battery"}: ToSubClass]
  42. CIM_Battery REF Antecedent;
  43. [Key: ToSubClass, read: ToSubClass, Override ("Dependent"): ToSubClass ,
  44. Description ("The Dependent reference represents the properties of "
  45. "a logical device using the battery."): ToSubClass,
  46. MappingStrings {"CIM|CIM_LogicalDevice"}: ToSubClass]
  47. CIM_LogicalDevice REF Dependent;
  48. };
  49. [Dynamic, Provider ("CIMWin32"),
  50. Description ("The Win32_PortableBattery class contains the "
  51. "the population of the DMTF|Portable Battery group, as defined "
  52. "in the DMTF Mobile Supplement to Standard Groups, v1.0 (section "
  53. "3.3.23 of the SMBIOS spec) and describes the attributes of the "
  54. "portable battery(s) for the system. The class contains the "
  55. "static attributes for the group and describes a single battery "
  56. "pack�s attributes."): ToSubClass,
  57. Locale (0x409), UUID ("{FAF76B9E-798C-11D2-AAD1-006008C78BC7}") ]
  58. class Win32_PortableBattery:CIM_Battery
  59. {
  60. [Read: ToSubClass , Key: ToSubClass, Override("DeviceId"): ToSubClass,
  61. Description ("The DeviceID property contains a string identifying "
  62. "the portable battery.\nExample: Portable Battery"): ToSubClass,
  63. MappingStrings {"WMI"}: ToSubClass]
  64. string DeviceID ;
  65. [read: ToSubClass,
  66. Description ("The Location property indicates the physical location "
  67. "of the battery. This property is filled by the computer manufacturer."
  68. "\nExample: In the back, on the left-hand side"): ToSubClass,
  69. MappingStrings {"SMBIOS|Type 22|Location"}: ToSubClass]
  70. string Location;
  71. [read: ToSubClass,
  72. Description ("The ManufactureDate property identifies the date when the "
  73. "battery was manufactured."): ToSubClass,
  74. MappingStrings {"SMBIOS|Type 22|Manufacture Date"}: ToSubClass]
  75. string ManufactureDate;
  76. [read: ToSubClass,
  77. Description ("The Manufacturer property indicates the manufacturer of the "
  78. "battery."): ToSubClass,
  79. MappingStrings {"SMBIOS|Type 22|Manufacturer"}: ToSubClass]
  80. string Manufacturer;
  81. [read: ToSubClass, Units("Percent"): ToSubClass,
  82. Description ("The MaxBatteryError property indicates the difference "
  83. "between the highest estimated amount of energy left in the battery and "
  84. "the current amount reported by the battery."): ToSubClass,
  85. MappingStrings {"SMBIOS|Type 22|Maximum Error in Battery Data"}: ToSubClass]
  86. uint16 MaxBatteryError;
  87. [read: ToSubClass,
  88. Description ("The CapacityMultiplier property contains the multiplication factor "
  89. "of the Design Capacity value to ensure that the milliwatt hour value "
  90. "does not overflow for Smart Battery Data Specification (SBDS) "
  91. "implementations."): ToSubClass ,
  92. MappingStrings {"SMBIOS|Type 22|Design Capacity Multiplier"}: ToSubClass]
  93. uint16 CapacityMultiplier;
  94. };
  95. [Description ("The Win32_PowerManagementEvent class represents power "
  96. "management events resulting from power state changes. These state "
  97. "changes are associated with either the Advanced Power Management(APM) "
  98. "or the Advanced Configuration and Power Interface(ACPI) system "
  99. "management protocols."): ToSubClass,
  100. Locale (0x409), UUID("{86460B6B-E709-11d2-B139-00105A1F77A1}") ]
  101. class Win32_PowerManagementEvent : __ExtrinsicEvent
  102. {
  103. [read: ToSubClass,
  104. Description ("The EventType property indicates the type of change in "
  105. "the system power state."): ToSubClass,
  106. MappingStrings {"Win32API|Power Management Events"}: ToSubClass,
  107. Values {"Entering Suspend", "Resume from Suspend",
  108. "Power Status Change", "OEM Event", "Resume Automatic"}: ToSubClass,
  109. ValueMap {"4", "7", "10", "11", "18"}: ToSubClass]
  110. uint16 EventType ;
  111. [read: ToSubClass,
  112. Description ("The OEMEventCode property indicates the system "
  113. "power state defined by the original equipment manufacturer "
  114. "(OEM) when the EventType property of this class is set to \"OEM "
  115. "Event\", otherwise, this property is set to NULL. OEM events are "
  116. "generated when an APM BIOS signals an APM OEM event. OEM event "
  117. "codes are in the range 0x0200h - 0x02FFh."): ToSubClass,
  118. MappingStrings {"Win32API|Power Management Events"}: ToSubClass]
  119. uint16 OEMEventCode;
  120. };
  121. instance of __Win32Provider as $PowerEvent
  122. {
  123. Name = "MS_Power_Management_Event_Provider";
  124. ClsId = "{3DD82D10-E6F1-11d2-B139-00105A1F77A1}";
  125. HostingModel = "LocalSystemHost";
  126. };
  127. instance of __EventProviderRegistration
  128. {
  129. Provider = $PowerEvent;
  130. EventQueryList = {"select * from Win32_PowerManagementEvent"};
  131. };