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.

368 lines
8.1 KiB

  1. #pragma namespace ("\\\\.\\Root\\WMI")
  2. //
  3. // Wmi internal classes
  4. class WMIEvent : __ExtrinsicEvent
  5. {
  6. };
  7. [abstract]
  8. class MSBatteryClass:Win32_PerfRawData{
  9. };
  10. [WMI, Dynamic, Provider("WMIProv"),
  11. guid("{fc4670d1-ebbf-416e-87ce-374a4ebc111a}"),
  12. localeid(0x409),
  13. WmiExpense(1000),
  14. Description("Battery Status") : amended,
  15. perfdetail(100),
  16. hiperf]
  17. class BatteryStatus:MSBatteryClass
  18. {
  19. [key, read]
  20. string InstanceName;
  21. [read]
  22. boolean Active;
  23. [read,
  24. countertype(0x00010000),
  25. defaultscale(0),
  26. perfdetail(100),
  27. Description("Battery Tag") : amended,
  28. WmiDataId(1),
  29. WmiVolatility(10000)]
  30. uint32 Tag;
  31. [read,
  32. countertype(0x00010000),
  33. defaultscale(0),
  34. perfdetail(100),
  35. Description("Remaining battery capacity") : amended,
  36. WmiDataId(2),
  37. WmiVolatility(10000)]
  38. uint32 RemainingCapacity;
  39. [read,
  40. countertype(0x00010000),
  41. defaultscale(0),
  42. perfdetail(100),
  43. Description("Charge Rate") : amended,
  44. WmiDataId(3),
  45. WmiVolatility(10000)]
  46. sint32 ChargeRate;
  47. [read,
  48. countertype(0x00010000),
  49. defaultscale(0),
  50. perfdetail(100),
  51. Description("Discharge Rate") : amended,
  52. WmiDataId(4),
  53. WmiVolatility(10000)]
  54. sint32 DischargeRate;
  55. [read,
  56. countertype(0x00010000),
  57. defaultscale(0),
  58. perfdetail(100),
  59. Description("Voltage") : amended,
  60. WmiDataId(5),
  61. WmiVolatility(10000)]
  62. uint32 Voltage;
  63. [read,
  64. Description("Power Online") : amended,
  65. WmiDataId(6),
  66. WmiVolatility(10000)]
  67. boolean PowerOnline;
  68. [read,
  69. Description("Charging") : amended,
  70. WmiDataId(7),
  71. WmiVolatility(10000)]
  72. boolean Charging;
  73. [read,
  74. Description("Discharging") : amended,
  75. WmiDataId(8),
  76. WmiVolatility(10000)]
  77. boolean Discharging;
  78. [read,
  79. Description("Critical") : amended,
  80. WmiDataId(9),
  81. WmiVolatility(10000)]
  82. boolean Critical;
  83. };
  84. [WMI, Dynamic, Provider("WMIProv"),
  85. guid("{535a3767-1ac2-49bc-a077-3f7a02e40aec}"),
  86. localeid(0x409),
  87. WmiExpense(1000),
  88. Description("Estimated runtime") : amended]
  89. class BatteryRuntime:MSBatteryClass
  90. {
  91. [key, read]
  92. string InstanceName;
  93. [read]
  94. boolean Active;
  95. [read,
  96. Description("Battery Tag") : amended,
  97. WmiDataId(1)]
  98. uint32 Tag;
  99. [read,
  100. Description("Estimated System Runtime") : amended,
  101. WmiDataId(2),
  102. WmiVolatility(10000)]
  103. uint32 EstimatedRuntime;
  104. };
  105. [WMI, Dynamic, Provider("WMIProv"),
  106. guid("{1a52a14d-adce-4a44-9a3e-c8d8f15ff2c2}"),
  107. localeid(0x409),
  108. WmiExpense(1000),
  109. Description("Battery Temperature") : amended]
  110. class BatteryTemperature:MSBatteryClass
  111. {
  112. [key, read]
  113. string InstanceName;
  114. [read]
  115. boolean Active;
  116. [read,
  117. Description("Battery Tag") : amended,
  118. WmiDataId(1)]
  119. uint32 Tag;
  120. [read,
  121. Description("Battery Temperature") : amended,
  122. WmiDataId(2),
  123. WmiVolatility(10000)]
  124. uint32 Temperature;
  125. };
  126. [WMI, Dynamic, Provider("WMIProv"),
  127. guid("{40b40565-96f7-4435-8694-97e0e4395905}"),
  128. localeid(0x409),
  129. WmiExpense(1000),
  130. Description("Full charged Capacity") : amended]
  131. class BatteryFullChargedCapacity:MSBatteryClass
  132. {
  133. [key, read]
  134. string InstanceName;
  135. [read]
  136. boolean Active;
  137. [read,
  138. Description("Battery Tag") : amended,
  139. WmiDataId(1)]
  140. uint32 Tag;
  141. [read,
  142. Description("Last measured total full charged battery capacity") : amended,
  143. WmiDataId(2),
  144. WmiVolatility(100000000)]
  145. uint32 FullChargedCapacity;
  146. };
  147. [WMI, Dynamic, Provider("WMIProv"),
  148. guid("{ef98db24-0014-4c25-a50b-c724ae5cd371}"),
  149. localeid(0x409),
  150. WmiExpense(1000),
  151. Description("Battery Cycle Count") : amended]
  152. class BatteryCycleCount:MSBatteryClass
  153. {
  154. [key, read]
  155. string InstanceName;
  156. [read]
  157. boolean Active;
  158. [read,
  159. Description("Battery Tag") : amended,
  160. WmiDataId(1)]
  161. uint32 Tag;
  162. [read,
  163. Description("Cycle Count") : amended,
  164. WmiDataId(2),
  165. WmiVolatility(100000000)]
  166. uint32 CycleCount;
  167. };
  168. [WMI, Dynamic, Provider("WMIProv"),
  169. guid("{05e1e463-e4e2-4ea9-80cb-9bd4b3ca0655}"),
  170. localeid(0x409),
  171. WmiExpense(1000),
  172. Description("Static Data") : amended]
  173. class BatteryStaticData:MSBatteryClass
  174. {
  175. [key, read]
  176. string InstanceName;
  177. [read]
  178. boolean Active;
  179. [read,
  180. Description("Battery Tag") : amended,
  181. WmiDataId(1)]
  182. uint32 Tag;
  183. [read,
  184. Description("Manufacture Date") : amended,
  185. WmiDataId(2)]
  186. datetime ManufactureDate;
  187. [read,
  188. Description("Granularity") : amended,
  189. WmiDataId(3)]
  190. uint64 Granularity0;
  191. [read,
  192. Description("Granularity") : amended,
  193. WmiDataId(4)]
  194. uint64 Granularity1;
  195. [read,
  196. Description("Granularity") : amended,
  197. WmiDataId(5)]
  198. uint64 Granularity2;
  199. [read,
  200. Description("Granularity") : amended,
  201. WmiDataId(6)]
  202. uint64 Granularity3;
  203. [read,
  204. Description("Capabilities") : amended,
  205. WmiDataId(7)]
  206. uint32 Capabilities;
  207. [read,
  208. Description("Technology") : amended,
  209. WmiDataId(8)]
  210. uint8 Technology;
  211. [read,
  212. Description("Chemistry") : amended,
  213. WmiDataId(9)]
  214. uint32 Chemistry;
  215. [read,
  216. Description("Designed Capacity") : amended,
  217. WmiDataId(10)]
  218. uint32 DesignedCapacity;
  219. [read,
  220. Description("Default Critical battery alarm setting") : amended,
  221. WmiDataId(11)]
  222. uint32 DefaultAlert1;
  223. [read,
  224. Description("Default Low battery alarm setting") : amended,
  225. WmiDataId(12)]
  226. uint32 DefaultAlert2;
  227. [read,
  228. Description("Critical Bias") : amended,
  229. WmiDataId(13)]
  230. uint32 CriticalBias;
  231. [read,
  232. Description("Device Name") : amended,
  233. WmiDataId(14)]
  234. string DeviceName;
  235. [read,
  236. Description("Manufacture Name") : amended,
  237. WmiDataId(15)]
  238. string ManufactureName;
  239. [read,
  240. Description("Serial number") : amended,
  241. WmiDataId(16)]
  242. string SerialNumber;
  243. [read,
  244. Description("Unique ID") : amended,
  245. WmiDataId(17)]
  246. string UniqueID;
  247. };
  248. class MSBatteryClassEvent:WmiEvent
  249. {
  250. };
  251. [WMI, Dynamic, Provider("WMIProv"),
  252. guid("{cddfa0c3-7c5b-4e43-a034-059fa5b84364}"),
  253. localeid(0x409),
  254. WmiExpense(1),
  255. Description("Battery Status Change Event") : amended]
  256. class BatteryStatusChange:MSBatteryClassEvent
  257. {
  258. [key, read]
  259. string InstanceName;
  260. [read]
  261. boolean Active;
  262. [read,
  263. Description("Battery Tag") : amended,
  264. WmiDataId(1)]
  265. uint32 Tag;
  266. [read,
  267. Description("Power Online") : amended,
  268. WmiDataId(2),
  269. WmiVolatility(10000)]
  270. boolean PowerOnline;
  271. [read,
  272. Description("Charging") : amended,
  273. WmiDataId(3),
  274. WmiVolatility(10000)]
  275. boolean Charging;
  276. [read,
  277. Description("Discharging") : amended,
  278. WmiDataId(4),
  279. WmiVolatility(10000)]
  280. boolean Discharging;
  281. [read,
  282. Description("Critical") : amended,
  283. WmiDataId(5),
  284. WmiVolatility(10000)]
  285. boolean Critical;
  286. };
  287. [WMI, Dynamic, Provider("WMIProv"),
  288. guid("{5e1f6e19-8786-4d23-94fc-9e746bd5d888}"),
  289. localeid(0x409),
  290. WmiExpense(1),
  291. Description("Battery inserted or removed") : amended]
  292. class BatteryTagChange:MSBatteryClassEvent
  293. {
  294. [key, read]
  295. string InstanceName;
  296. [read]
  297. boolean Active;
  298. [read,
  299. Description("Battery Tag") : amended,
  300. WmiDataId(1)]
  301. uint32 Tag;
  302. };