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.

175 lines
7.0 KiB

  1. // WhqlProvider.MOF
  2. // WMI classes definitions for the WHQL provider.
  3. // The provider is used to get signing info. about all device drivers
  4. //
  5. // This mof defines two classes.Win32_PnPSignedDriver & Win32_PnPSignedDriverCIMDataFile
  6. //
  7. //===================================================================
  8. #pragma namespace("\\\\.\\ROOT\\CIMV2")
  9. //*************************************************************
  10. //*** Registers Provider ***
  11. //*************************************************************
  12. instance of __Win32Provider as $P
  13. {
  14. Name = "WhqlProvider";
  15. ClsId = "{A0F93E27-F05D-4153-A151-F3720369A4C7}";
  16. };
  17. instance of __InstanceProviderRegistration
  18. {
  19. Provider = $P;
  20. SupportsGet = TRUE;
  21. SupportsPut = FALSE;
  22. SupportsDelete = FALSE;
  23. SupportsEnumeration = TRUE;
  24. QuerySupportLevels = NULL;
  25. };
  26. instance of __MethodProviderRegistration
  27. {
  28. Provider = $P;
  29. };
  30. //This would actually store info about the Driver.
  31. [provider("WhqlProvider"): ToInstance ToSubClass, dynamic: ToInstance ToSubClass,
  32. Description(
  33. "The Win32_PnPSignedDriver class provides digital signature information about drivers "): ToSubClass ]
  34. class Win32_PnPSignedDriver
  35. {
  36. [key , read: ToInstance ToSubClass ,
  37. Decription("The PnPID property is the Plug & Play ID of the device"): ToSubClass ]
  38. String PnPID;
  39. [read: ToInstance ToSubClass ,
  40. Decription("The ClassGUID property is the ClassGUID of the device"): ToSubClass ]
  41. String ClassGuid;
  42. [Decription("The IsSigned property is the signature status of driver "
  43. "that is it represents whether the driver is signed or not")]
  44. Boolean IsSigned;
  45. [read: ToInstance ToSubClass ,
  46. Decription("The Signer property is the signer of driver if it is signed"): ToSubClass ]
  47. String Signer;
  48. [read: ToInstance ToSubClass ,
  49. Decription("The InfFile property is the name of the Inf file which installed this device"): ToSubClass ]
  50. String InfPath;
  51. [read: ToInstance ToSubClass ,
  52. Decription("The DriverVersion property is the version of the driver "): ToSubClass ]
  53. String DriverVersion;
  54. [read: ToInstance ToSubClass ,
  55. Decription("The DriverDate property is the Date of the driver "): ToSubClass ]
  56. String DriverDate;
  57. [read: ToInstance ToSubClass ,
  58. Decription("The Description property is the Description of the driver "): ToSubClass ]
  59. //String DriverDesc;
  60. String Description;
  61. [read: ToInstance ToSubClass ,
  62. Decription("The ProviderName property is the Provider of the driver "): ToSubClass ]
  63. String ProviderName;
  64. [read: ToInstance ToSubClass ,
  65. Decription("The HardwareID property array is the array of HardwareIDs of the driver "): ToSubClass ]
  66. String HardWareID[];
  67. //Other attributes as reqd by WHQL.
  68. [read: ToInstance ToSubClass ,
  69. Decription("The DrvTool property is an authenticated attribute stored in drivers' cat file which represents"
  70. "Version # of the tool that generated .CAT file."): ToSubClass ]
  71. String DrvTool;
  72. [read: ToInstance ToSubClass ,
  73. Decription("The SerialNumber property is an authenticated attribute stored in drivers' cat file which represents"
  74. "Self-Sign job ID"): ToSubClass ]
  75. String SerialNumber;
  76. [read: ToInstance ToSubClass ,
  77. Decription("The KitVer property is an authenticated attribute stored in drivers' cat file which represents "
  78. "Test Kit version driver set passed testing with? Note: KV_Unknown means No Test Program"): ToSubClass ]
  79. String KitVer;
  80. [read: ToInstance ToSubClass ,
  81. Decription("The OSBuild property is an authenticated attribute stored in drivers' cat file which represents "
  82. "Which build of OS did driver set pass testing with?"): ToSubClass ]
  83. String OSBuild;
  84. [read: ToInstance ToSubClass ,
  85. Decription("The OSAttr property is an authenticated attribute stored in drivers' cat file whch represents OS Attribute "): ToSubClass ]
  86. String OSAttr;
  87. [read: ToInstance ToSubClass ,
  88. Decription("OSSP is an authenticated attribute stored in drivers' cat file which represents "
  89. "Which OS Service Pack did driver set pass testing with?"): ToSubClass ]
  90. String OSSP;
  91. [read: ToInstance ToSubClass ,
  92. Decription("The HWIDxxx property is an authenticated attribute stored in drivers' cat file which represents"
  93. "Hardware Ids that have actually passed testing. Note: there number of hardware Ids is practically unlimited "): ToSubClass ]
  94. String HWIDxxx;
  95. [read: ToInstance ToSubClass ,
  96. Decription("The Company property is an authenticated attribute stored in drivers' cat file which represents "
  97. "Company name that requested driver set be signed"): ToSubClass ]
  98. String Company;
  99. [read: ToInstance ToSubClass ,
  100. Decription("The SupURL property is an authenticated attribute stored in drivers' cat file which represents"
  101. "Support URL for company that requested driver set be signed"): ToSubClass ]
  102. String SupURL;
  103. [read: ToInstance ToSubClass ,
  104. Decription("The SupPhone property is an authenticated attribute stored in drivers' cat file which represents The Support phone no."): ToSubClass ]
  105. String SupPhone;
  106. [read: ToInstance ToSubClass ,
  107. Decription("The PilotProg property is an authenticated attribute stored in drivers' cat file which represents"
  108. "Audit trail for drivers signed during Pilot Program"): ToSubClass ]
  109. String PilotProg;
  110. [read: ToInstance ToSubClass ,
  111. Decription("The Cave property is an authenticated attribute stored in drivers' cat file which represents"
  112. "Audit trail if we have to sign driver sets without reviewing test log files"): ToSubClass ]
  113. String Cave;
  114. };
  115. [provider("WhqlProvider"): ToInstance ToSubClass, dynamic: ToInstance ToSubClass ,
  116. Decription("Win32_PnPSignedDriverCIMDataFile is an association class basically used to get all the binary "
  117. "files associated with the driver"): ToSubClass ]
  118. class Win32_PnPSignedDriverCIMDataFile
  119. {
  120. [read: ToInstance ToSubClass, key ,
  121. Decription("The PnPID propety is the PnPID of the device represented by Win32_PnPSignedDriver class instance"): ToSubClass ]
  122. String PnPID;
  123. //[read: ToInstance ToSubClass, key]String FileName;
  124. [read: ToInstance ToSubClass, key ,
  125. Decription("The Antecedent propety is a reference to Win32_PnPSignedDriver instance "): ToSubClass ]
  126. Win32_PnPSignedDriver ref Antecedent;
  127. [read: ToInstance ToSubClass, key ,
  128. Decription("The Dependent property is a reference to CIM_DataFile which represents "
  129. "the binary file associated with the PnP driver "): ToSubClass ]
  130. CIM_DataFile ref Dependent;
  131. };
  132. [provider("WhqlProvider"): ToInstance ToSubClass, dynamic: ToInstance ToSubClass ,
  133. Decription("Win32_PnPSignedDriverCIMDataFile is an association class basically used to get all the binary "
  134. "files associated with the driver"): ToSubClass ]
  135. class Win32_PnPSignedDriverWin32PnPEntity
  136. {
  137. [read: ToInstance ToSubClass, key ,
  138. Decription("The Dependent property is a reference Win32_PnPSignedDriver"): ToSubClass ]
  139. Win32_PnPSignedDriver ref Antecedent;
  140. [read: ToInstance ToSubClass, key ,
  141. Decription("The Antecedent property is a reference to Win32_PnPSignedDriver instance "): ToSubClass ]
  142. Win32_PnEntity ref Dependent;
  143. };