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.

552 lines
15 KiB

  1. //*****************************************************************************
  2. // Diagnostics Provider SDK
  3. //
  4. // MODULE : Sample_Filter_DiagProv.MOF
  5. //
  6. // PURPOSE : Define the subclasses and instances nedeed for Sample_Filter
  7. // Diagnostic Provider
  8. //*****************************************************************************
  9. //////////////////////////////////////////////
  10. // Specify namespace for v2 schema extension
  11. #pragma namespace ("\\\\.\\Root\\CIMV2")
  12. [ Description( "This is the Sample Filter DiagTest class "
  13. "It subclass from the abstract base class CIM_DiagnosticTest "),
  14. Dynamic : ToInstance,
  15. Provider ( "cdmprov" ),
  16. WdmDiagTest("MSSample_DiagnosticTest"),
  17. CdmDiagResult("Sample_Filter_DiagResult"),
  18. CdmDiagSetting("Sample_Filter_DiagSetting"),
  19. CdmDiagTestForMSE("Sample_Filter_DiagTestForMSE"),
  20. CdmDiagResultForMSE("Sample_Filter_DiagResultForMSE"),
  21. CdmDiagResultForTest("Sample_Filter_DiagResultForTest"),
  22. CdmDiagTestSoftware("Sample_Filter_DiagTestSoftware"),
  23. CdmDiagSettingForTest("Sample_Filter_DiagSettingForTest"),
  24. CdmDiagTestInPackage("Sample_Filter_DiagTestInPkg"),
  25. CdmDiagResultInPackage("Sample_Filter_DiagResultInPkg"),
  26. CimClassMapping("Win32_USBController") ]
  27. class Sample_Filter_DiagTest : CIM_DiagnosticTest
  28. {
  29. //***Class properties
  30. //***Class methods
  31. };
  32. [ Description( "This is the Sample Filter DiagSetting class "
  33. "It subclass from the abstract base class CIM_DiagnosticSetting "),
  34. Dynamic : ToInstance,
  35. Provider ( "cdmprov" ),
  36. CdmDiagTest("Sample_Filter_DiagTest"),
  37. WdmDiagSettingList("MSSample_DiagnosticSettingList"),
  38. WdmDiagSetting("MSSample_DiagnosticSetting") ]
  39. class Sample_Filter_DiagSetting : CIM_DiagnosticSetting
  40. {
  41. //***Class properties
  42. };
  43. [ Description( "This is the Sample Filter DiagResult class "
  44. "It subclasses from the abstract base class CIM_DiagnosticResult "),
  45. Dynamic : ToInstance,
  46. Provider ( "cdmprov" ),
  47. CdmDiagTest("Sample_Filter_DiagTest"),
  48. WdmDiagResult("MSSample_DiagnosticResult") ]
  49. class Sample_Filter_DiagResult : CIM_DiagnosticResult
  50. {
  51. //***Class properties
  52. };
  53. [ Description( "This is the Sample Filter DiagTestForMSE class "
  54. "It subclasses from the abstract base class CIM_DiagnosticTestForMSE "),
  55. Dynamic : ToInstance,
  56. CdmDiagTest("Sample_Filter_DiagTest"),
  57. Provider ( "cdmprov" ) ]
  58. class Sample_Filter_DiagTestForMSE : CIM_DiagnosticTestForMSE
  59. {
  60. //***Class properties
  61. };
  62. [ Description ( "This is the Sample Filter DiagResultForMSE class "
  63. "It subclasses from the abstract base class CIM_DiagnosticResultForMSE "),
  64. Dynamic : ToInstance,
  65. CdmDiagTest("Sample_Filter_DiagTest"),
  66. Provider ( "cdmprov" ) ]
  67. class Sample_Filter_DiagResultForMSE : CIM_DiagnosticResultForMSE
  68. {
  69. //***Class properties
  70. };
  71. [ Description( "This is the Sample Filter DiagResultForTest class "
  72. "It subclasses from the abstract base class CIM_DiagnosticResultForTest "),
  73. Dynamic : ToInstance,
  74. CdmDiagTest("Sample_Filter_DiagTest"),
  75. Provider ( "cdmprov" ) ]
  76. class Sample_Filter_DiagResultForTest : CIM_DiagnosticResultForTest
  77. {
  78. //***Class properties
  79. };
  80. [ Description("This is the Sample Filter DiagTestSoftware class "
  81. "It subclasses from the abstract base class CIM_DiagnosticTestDependency "),
  82. Dynamic : ToInstance,
  83. CdmDiagTest("Sample_Filter_DiagTest"),
  84. Provider ( "cdmprov" ) ]
  85. class Sample_Filter_DiagTestSoftware : CIM_DiagnosticTestSoftware
  86. {
  87. //***Class properties
  88. };
  89. [ Description( "This is the Sample Filter DiagSettingForTest class "
  90. "It subclasses from the abstract base class CIM_DiagnosticSettingForTest "),
  91. Dynamic : ToInstance,
  92. CdmDiagTest("Sample_Filter_DiagTest"),
  93. Provider ( "cdmprov" ) ]
  94. class Sample_Filter_DiagSettingForTest : CIM_DiagnosticSettingForTest
  95. {
  96. //***Class properties
  97. };
  98. [ Description( "This is the Sample_Filter DiagTestInPkg class "
  99. "It subclasses from the abstract base class CIM_DiagnosticTestInPackage "),
  100. Dynamic : ToInstance,
  101. CdmDiagTest("Sample_Filter_DiagTest"),
  102. Provider ( "cdmprov" ) ]
  103. class Sample_Filter_DiagTestInPkg : CIM_DiagnosticTestInPackage
  104. {
  105. //***Class properties
  106. };
  107. [ Description( "This is the Sample_Filter DiagResultInPkg class "
  108. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  109. Dynamic : ToInstance,
  110. CdmDiagTest("Sample_Filter_DiagTest"),
  111. Provider ( "cdmprov" ) ]
  112. class Sample_Filter_DiagResultInPkg : CIM_DiagnosticResultInPackage
  113. {
  114. //***Class properties
  115. };
  116. [ Description( "This is the Sample_Filter DiagResultInPkg class "
  117. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  118. Dynamic : ToInstance,
  119. CdmDiagTest("Sample_Filter_DiagTest"),
  120. Provider ( "cdmprov" ) ]
  121. class Sample_Filter_DiagResultForMSE : CIM_DiagnosticResultForMSE
  122. {
  123. //***Class properties
  124. };
  125. [ Description( "This is the Sample Offline DiagTest class "
  126. "It subclass from the abstract base class CIM_DiagnosticTest "),
  127. Dynamic : ToInstance,
  128. Provider ( "cdmprov" ),
  129. WdmDiagTest("MSSample_OfflineDiagnosticTest"),
  130. CdmDiagResult("Sample_Offline_DiagResult"),
  131. CdmDiagSetting("Sample_Offline_DiagSetting"),
  132. CdmDiagTestForMSE("Sample_Offline_DiagTestForMSE"),
  133. CdmDiagResultForMSE("Sample_Offline_DiagResultForMSE"),
  134. CdmDiagResultForTest("Sample_Offline_DiagResultForTest"),
  135. CdmDiagTestSoftware("Sample_Offline_DiagTestSoftware"),
  136. CdmDiagSettingForTest("Sample_Offline_DiagSettingForTest"),
  137. CdmDiagTestInPackage("Sample_Offline_DiagTestInPkg"),
  138. CdmDiagResultInPackage("Sample_Offline_DiagResultInPkg"),
  139. CimClassMapping("Win32_USBController") ]
  140. class Sample_Offline_DiagTest : CIM_DiagnosticTest
  141. {
  142. //***Class properties
  143. //***Class methods
  144. };
  145. [ Description( "This is the Sample Filter DiagSetting class "
  146. "It subclass from the abstract base class CIM_DiagnosticSetting "),
  147. Dynamic : ToInstance,
  148. Provider ( "cdmprov" ),
  149. CdmDiagTest("Sample_Offline_DiagTest"),
  150. WdmDiagSettingList("MSSample_DiagnosticSettingList"),
  151. WdmDiagSetting("MSSample_DiagnosticSetting") ]
  152. class Sample_Offline_DiagSetting : CIM_DiagnosticSetting
  153. {
  154. //***Class properties
  155. };
  156. [ Description( "This is the Sample Filter DiagResult class "
  157. "It subclasses from the abstract base class CIM_DiagnosticResult "),
  158. Dynamic : ToInstance,
  159. Provider ( "cdmprov" ),
  160. CdmDiagTest("Sample_Offline_DiagTest"),
  161. WdmDiagOfflineResult("MSSample_OfflineResult"),
  162. WdmDiagResult("MSSample_DiagnosticResult")
  163. ]
  164. class Sample_Offline_DiagResult : CIM_DiagnosticResult
  165. {
  166. //***Class properties
  167. };
  168. [ Description( "This is the Sample Filter DiagTestForMSE class "
  169. "It subclasses from the abstract base class CIM_DiagnosticTestForMSE "),
  170. Dynamic : ToInstance,
  171. CdmDiagTest("Sample_Offline_DiagTest"),
  172. Provider ( "cdmprov" ) ]
  173. class Sample_Offline_DiagTestForMSE : CIM_DiagnosticTestForMSE
  174. {
  175. //***Class properties
  176. };
  177. [ Description ( "This is the Sample Filter DiagResultForMSE class "
  178. "It subclasses from the abstract base class CIM_DiagnosticResultForMSE "),
  179. Dynamic : ToInstance,
  180. CdmDiagTest("Sample_Offline_DiagTest"),
  181. Provider ( "cdmprov" ) ]
  182. class Sample_Offline_DiagResultForMSE : CIM_DiagnosticResultForMSE
  183. {
  184. //***Class properties
  185. };
  186. [ Description( "This is the Sample Filter DiagResultForTest class "
  187. "It subclasses from the abstract base class CIM_DiagnosticResultForTest "),
  188. Dynamic : ToInstance,
  189. CdmDiagTest("Sample_Offline_DiagTest"),
  190. Provider ( "cdmprov" ) ]
  191. class Sample_Offline_DiagResultForTest : CIM_DiagnosticResultForTest
  192. {
  193. //***Class properties
  194. };
  195. [ Description("This is the Sample Filter DiagTestSoftware class "
  196. "It subclasses from the abstract base class CIM_DiagnosticTestDependency "),
  197. Dynamic : ToInstance,
  198. CdmDiagTest("Sample_Offline_DiagTest"),
  199. Provider ( "cdmprov" ) ]
  200. class Sample_Offline_DiagTestSoftware : CIM_DiagnosticTestSoftware
  201. {
  202. //***Class properties
  203. };
  204. [ Description( "This is the Sample Filter DiagSettingForTest class "
  205. "It subclasses from the abstract base class CIM_DiagnosticSettingForTest "),
  206. Dynamic : ToInstance,
  207. CdmDiagTest("Sample_Offline_DiagTest"),
  208. Provider ( "cdmprov" ) ]
  209. class Sample_Offline_DiagSettingForTest : CIM_DiagnosticSettingForTest
  210. {
  211. //***Class properties
  212. };
  213. [ Description( "This is the Sample_Offline DiagTestInPkg class "
  214. "It subclasses from the abstract base class CIM_DiagnosticTestInPackage "),
  215. Dynamic : ToInstance,
  216. CdmDiagTest("Sample_Offline_DiagTest"),
  217. Provider ( "cdmprov" ) ]
  218. class Sample_Offline_DiagTestInPkg : CIM_DiagnosticTestInPackage
  219. {
  220. //***Class properties
  221. };
  222. [ Description( "This is the Sample_Offline DiagResultInPkg class "
  223. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  224. Dynamic : ToInstance,
  225. CdmDiagTest("Sample_Offline_DiagTest"),
  226. Provider ( "cdmprov" ) ]
  227. class Sample_Offline_DiagResultInPkg : CIM_DiagnosticResultInPackage
  228. {
  229. //***Class properties
  230. };
  231. [ Description( "This is the Sample_Offline DiagResultInPkg class "
  232. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  233. Dynamic : ToInstance,
  234. CdmDiagTest("Sample_Offline_DiagTest"),
  235. Provider ( "cdmprov" ) ]
  236. class Sample_Offline_DiagResultForMSE : CIM_DiagnosticResultForMSE
  237. {
  238. //***Class properties
  239. };
  240. //***************************************************************************
  241. // Diagnostics Provider (Instance & Method Provider) Registration
  242. //***************************************************************************
  243. instance of __Win32Provider as $P
  244. {
  245. Name = "cdmprov";
  246. ClsId = "{36304435-AA69-4536-BB81-CBACBC775F03}";
  247. };
  248. instance of __InstanceProviderRegistration
  249. {
  250. Provider = $P;
  251. SupportsPut = TRUE;
  252. SupportsGet = TRUE;
  253. SupportsDelete = FALSE;
  254. SupportsEnumeration = TRUE;
  255. };
  256. instance of __MethodProviderRegistration
  257. {
  258. Provider = $P;
  259. };
  260. //
  261. // Definitions for printer
  262. //
  263. #pragma namespace ("\\\\.\\Root\\CIMV2")
  264. [ Description( "This is the Sample Filter DiagTest class "
  265. "It subclass from the abstract base class CIM_DiagnosticTest "),
  266. Dynamic : ToInstance,
  267. Provider ( "cdmprov" ),
  268. WdmDiagTest("MSSample_DiagnosticTest"),
  269. CdmDiagResult("Printer_Filter_DiagResult"),
  270. CdmDiagSetting("Printer_Filter_DiagSetting"),
  271. CdmDiagTestForMSE("Printer_Filter_DiagTestForMSE"),
  272. CdmDiagResultForMSE("Printer_Filter_DiagResultForMSE"),
  273. CdmDiagResultForTest("Printer_Filter_DiagResultForTest"),
  274. CdmDiagTestSoftware("Printer_Filter_DiagTestSoftware"),
  275. CdmDiagSettingForTest("Printer_Filter_DiagSettingForTest"),
  276. CdmDiagTestInPackage("Printer_Filter_DiagTestInPkg"),
  277. CdmDiagResultInPackage("Printer_Filter_DiagResultInPkg"),
  278. CimClassMapping("Win32_Keyboard") ]
  279. class Printer_Filter_DiagTest : CIM_DiagnosticTest
  280. {
  281. //***Class properties
  282. //***Class methods
  283. };
  284. [ Description( "This is the Sample Filter DiagSetting class "
  285. "It subclass from the abstract base class CIM_DiagnosticSetting "),
  286. Dynamic : ToInstance,
  287. Provider ( "cdmprov" ),
  288. CdmDiagTest("Printer_Filter_DiagTest"),
  289. WdmDiagSettingList("MSSample_DiagnosticSettingList"),
  290. WdmDiagSetting("MSSample_DiagnosticSetting") ]
  291. class Printer_Filter_DiagSetting : CIM_DiagnosticSetting
  292. {
  293. //***Class properties
  294. };
  295. [ Description( "This is the Sample Filter DiagResult class "
  296. "It subclasses from the abstract base class CIM_DiagnosticResult "),
  297. Dynamic : ToInstance,
  298. Provider ( "cdmprov" ),
  299. CdmDiagTest("Printer_Filter_DiagTest"),
  300. WdmDiagResult("MSSample_DiagnosticResult") ]
  301. class Printer_Filter_DiagResult : CIM_DiagnosticResult
  302. {
  303. //***Class properties
  304. };
  305. [ Description( "This is the Sample Filter DiagTestForMSE class "
  306. "It subclasses from the abstract base class CIM_DiagnosticTestForMSE "),
  307. Dynamic : ToInstance,
  308. CdmDiagTest("Printer_Filter_DiagTest"),
  309. Provider ( "cdmprov" ) ]
  310. class Printer_Filter_DiagTestForMSE : CIM_DiagnosticTestForMSE
  311. {
  312. //***Class properties
  313. };
  314. [ Description ( "This is the Sample Filter DiagResultForMSE class "
  315. "It subclasses from the abstract base class CIM_DiagnosticResultForMSE "),
  316. Dynamic : ToInstance,
  317. CdmDiagTest("Printer_Filter_DiagTest"),
  318. Provider ( "cdmprov" ) ]
  319. class Printer_Filter_DiagResultForMSE : CIM_DiagnosticResultForMSE
  320. {
  321. //***Class properties
  322. };
  323. [ Description( "This is the Sample Filter DiagResultForTest class "
  324. "It subclasses from the abstract base class CIM_DiagnosticResultForTest "),
  325. Dynamic : ToInstance,
  326. CdmDiagTest("Printer_Filter_DiagTest"),
  327. Provider ( "cdmprov" ) ]
  328. class Printer_Filter_DiagResultForTest : CIM_DiagnosticResultForTest
  329. {
  330. //***Class properties
  331. };
  332. [ Description("This is the Sample Filter DiagTestSoftware class "
  333. "It subclasses from the abstract base class CIM_DiagnosticTestDependency "),
  334. Dynamic : ToInstance,
  335. CdmDiagTest("Printer_Filter_DiagTest"),
  336. Provider ( "cdmprov" ) ]
  337. class Printer_Filter_DiagTestSoftware : CIM_DiagnosticTestSoftware
  338. {
  339. //***Class properties
  340. };
  341. [ Description( "This is the Sample Filter DiagSettingForTest class "
  342. "It subclasses from the abstract base class CIM_DiagnosticSettingForTest "),
  343. Dynamic : ToInstance,
  344. CdmDiagTest("Printer_Filter_DiagTest"),
  345. Provider ( "cdmprov" ) ]
  346. class Printer_Filter_DiagSettingForTest : CIM_DiagnosticSettingForTest
  347. {
  348. //***Class properties
  349. };
  350. [ Description( "This is the Printer_Filter DiagTestInPkg class "
  351. "It subclasses from the abstract base class CIM_DiagnosticTestInPackage "),
  352. Dynamic : ToInstance,
  353. CdmDiagTest("Printer_Filter_DiagTest"),
  354. Provider ( "cdmprov" ) ]
  355. class Printer_Filter_DiagTestInPkg : CIM_DiagnosticTestInPackage
  356. {
  357. //***Class properties
  358. };
  359. [ Description( "This is the Printer_Filter DiagResultInPkg class "
  360. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  361. Dynamic : ToInstance,
  362. CdmDiagTest("Printer_Filter_DiagTest"),
  363. Provider ( "cdmprov" ) ]
  364. class Printer_Filter_DiagResultInPkg : CIM_DiagnosticResultInPackage
  365. {
  366. //***Class properties
  367. };
  368. [ Description( "This is the Printer_Filter DiagResultInPkg class "
  369. "It subclasses from the abstract base class CIM_DiagnosticResultInPackage "),
  370. Dynamic : ToInstance,
  371. CdmDiagTest("Printer_Filter_DiagTest"),
  372. Provider ( "cdmprov" ) ]
  373. class Printer_Filter_DiagResultForMSE : CIM_DiagnosticResultForMSE
  374. {
  375. //***Class properties
  376. };