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.

240 lines
4.9 KiB

  1. //
  2. // Wmi internal classes
  3. class WMIEvent : __ExtrinsicEvent
  4. {
  5. };
  6. [WMI,
  7. Locale("MS\\0x409"),
  8. Description("This class contains the definition of the package used in other classes"),
  9. guid("{ABBC0F60-8EA1-11d1-00A0-C90629100000}")
  10. ]
  11. class Package
  12. {
  13. [WmiDataId(1),
  14. read, write,
  15. Description("16 bytes of data")
  16. ] uint8 Bytes[16];
  17. };
  18. [WMI,
  19. Dynamic,
  20. Provider("WmiProv"),
  21. Locale("MS\\0x409"),
  22. Description("Class to test Query/Set a package"),
  23. guid("{ABBC0F6a-8EA1-11d1-00A0-C90629100000}")
  24. ]
  25. class AcpiTest_QSPackage
  26. {
  27. [key, read]
  28. string InstanceName;
  29. [read] boolean Active;
  30. [WmiDataId(1),
  31. read, write,
  32. Description("description")
  33. ] Package Data;
  34. };
  35. [WMI,
  36. Dynamic,
  37. Provider("WmiProv"),
  38. Locale("MS\\0x409"),
  39. Description("Class to test Query/Set a string"),
  40. guid("{ABBC0F6b-8EA1-11d1-00A0-C90629100000}")
  41. ]
  42. class AcpiTest_QSString
  43. {
  44. [key, read]
  45. string InstanceName;
  46. [read] boolean Active;
  47. [WmiDataId(1),
  48. read, write,
  49. Description("description")
  50. ] string Text;
  51. };
  52. [WMI,
  53. Dynamic,
  54. Provider("WmiProv"),
  55. Locale("MS\\0x409"),
  56. Description("Class to test Query/Set a ULONG"),
  57. guid("{ABBC0F6C-8EA1-11d1-00A0-C90629100000}")
  58. ]
  59. class AcpiTest_QULong
  60. {
  61. [key, read]
  62. string InstanceName;
  63. [read] boolean Active;
  64. [WmiDataId(1),
  65. read, write,
  66. Description("description")
  67. ] uint32 ULong;
  68. };
  69. [WMI,
  70. Dynamic,
  71. Provider("WmiProv"),
  72. Locale("MS\\0x409"),
  73. Description("Class used to operate methods on a package"),
  74. guid("{ABBC0F6D-8EA1-11d1-00A0-C90629100000}")
  75. ]
  76. class AcpiTest_MPackage
  77. {
  78. [key, read]
  79. string InstanceName;
  80. [read] boolean Active;
  81. [WmiMethodId(1),
  82. Implemented,
  83. read, write,
  84. Description("Return the contents of a package")
  85. ] void GetPackage([out, Description("Package Data")] Package Data);
  86. [WmiMethodId(2),
  87. Implemented,
  88. read, write,
  89. Description("Set the contents of a package")
  90. ] void SetPackage([in, Description("Package Data")] Package Data);
  91. [WmiMethodId(3),
  92. Implemented,
  93. read, write,
  94. Description("Generate an event containing package data")
  95. ] void FirePackage([in, Description("WMI requires a parameter")] uint32 Hack);
  96. };
  97. [WMI,
  98. Dynamic,
  99. Provider("WmiProv"),
  100. Locale("MS\\0x409"),
  101. Description("Class used to operate methods on a string"),
  102. guid("{ABBC0F6E-8EA1-11d1-00A0-C90629100000}")
  103. ]
  104. class AcpiTest_MString
  105. {
  106. [key, read]
  107. string InstanceName;
  108. [read] boolean Active;
  109. [WmiMethodId(1),
  110. Implemented,
  111. read, write,
  112. Description("Return the contents of a string")
  113. ] void GetString([out, Description("String Data")] string Data);
  114. [WmiMethodId(2),
  115. Implemented,
  116. read, write,
  117. Description("Set the contents of a string")
  118. ] void SetString([in, Description("String Data")] string Data);
  119. [WmiMethodId(3),
  120. Implemented,
  121. read, write,
  122. Description("Generate an event containing string data")
  123. ] void FireString([in, Description("WMI requires a parameter")] uint32 Hack);
  124. };
  125. [WMI,
  126. Dynamic,
  127. Provider("WmiProv"),
  128. Locale("MS\\0x409"),
  129. Description("Class used to operate methods on a ULong"),
  130. guid("{ABBC0F6F-8EA1-11d1-00A0-C90629100000}")
  131. ]
  132. class AcpiTest_MULong
  133. {
  134. [key, read]
  135. string InstanceName;
  136. [read] boolean Active;
  137. [WmiMethodId(1),
  138. Implemented,
  139. read, write,
  140. Description("Return the contents of a ULong")
  141. ] void GetULong([out, Description("Ulong Data")] uint32 Data);
  142. [WmiMethodId(2),
  143. Implemented,
  144. read, write,
  145. Description("Set the contents of a ULong")
  146. ] void SetULong([in, Description("Ulong Data")] uint32 Data);
  147. [WmiMethodId(3),
  148. Implemented,
  149. read, write,
  150. Description("Generate an event containing ULong data")
  151. ] void FireULong([in, Description("WMI requires a parameter")] uint32 Hack);
  152. };
  153. [WMI,
  154. Dynamic,
  155. Provider("WmiProv"),
  156. Locale("MS\\0x409"),
  157. Description("Class containing event generated package data"),
  158. guid("{ABBC0F70-8EA1-11d1-00A0-C90629100000}")
  159. ]
  160. class AcpiTest_EventPackage : WmiEvent
  161. {
  162. [key, read]
  163. string InstanceName;
  164. [read] boolean Active;
  165. [WmiDataId(1),
  166. read, write,
  167. Description("Package Data")
  168. ] Package Data;
  169. };
  170. [WMI,
  171. Dynamic,
  172. Provider("WmiProv"),
  173. Locale("MS\\0x409"),
  174. Description("Class containing event generated string data"),
  175. guid("{ABBC0F71-8EA1-11d1-00A0-C90629100000}")
  176. ]
  177. class AcpiTest_EventString : WmiEvent
  178. {
  179. [key, read]
  180. string InstanceName;
  181. [read] boolean Active;
  182. [WmiDataId(1),
  183. read, write,
  184. Description("String Data")
  185. ] string Text;
  186. };
  187. [WMI,
  188. Dynamic,
  189. Provider("WmiProv"),
  190. Description("Class containing event generated ULong data"),
  191. Locale("MS\\0x409"),
  192. guid("{ABBC0F72-8EA1-11d1-00A0-C90629100000}")
  193. ]
  194. class AcpiTest_EventULong : WmiEvent
  195. {
  196. [key, read]
  197. string InstanceName;
  198. [read] boolean Active;
  199. [WmiDataId(1),
  200. read, write,
  201. Description("ULong Data")
  202. ] uint32 ULong;
  203. };