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.

111 lines
2.6 KiB

  1. //////////////////////////////////////////////
  2. // Specify namespace for v2 schema extension
  3. #pragma namespace ("\\\\.\\Root\\CIMV2")
  4. //***************************************************************************
  5. // Diagnostics Provider (Instance & Method Provider) Registration
  6. //***************************************************************************
  7. instance of __Win32Provider as $P
  8. {
  9. Name = "wmimap";
  10. ClsId = "{8DD99E84-2B01-4c97-8061-2A3D08E289BB}";
  11. };
  12. instance of __InstanceProviderRegistration
  13. {
  14. Provider = $P;
  15. SupportsPut = TRUE;
  16. SupportsGet = TRUE;
  17. SupportsDelete = FALSE;
  18. SupportsEnumeration = TRUE;
  19. };
  20. instance of __MethodProviderRegistration
  21. {
  22. Provider = $P;
  23. };
  24. [Dynamic, Provider("wmimap"),
  25. WdmShadowClass("MSKeyboard_PortInformation"),
  26. DerivedClassType("Concrete")
  27. ]
  28. class FooConcrete : Win32_Keyboard
  29. {
  30. string ConnectorType;
  31. uint32 DataQueueSize;
  32. uint32 ErrorCount;
  33. uint32 FunctionKeys;
  34. };
  35. [Dynamic, Provider("wmimap"),
  36. WdmShadowClass("MSKeyboard_PortInformation"),
  37. DerivedClassType("NonConcrete")
  38. ]
  39. class FooNonConcrete : CIM_Keyboard
  40. {
  41. [key] string InstanceName;
  42. // [FillSuperClass] string PnpDeviceId;
  43. string ConnectorType;
  44. uint32 DataQueueSize;
  45. uint32 ErrorCount;
  46. uint32 FunctionKeys;
  47. };
  48. [Dynamic, Provider("wmimap"),
  49. WdmShadowClass("MSKeyboard_PortInformation"),
  50. CimMappingClass("Win32_Keyboard")
  51. ]
  52. class FooNoDerivation
  53. {
  54. [key] string InstanceName;
  55. string ConnectorType;
  56. uint32 DataQueueSize;
  57. uint32 ErrorCount;
  58. uint32 FunctionKeys;
  59. };
  60. [Dynamic, Provider("wmimap"),
  61. WdmShadowClass("MSSerial_HardwareConfiguration"),
  62. CimMappingClass("Win32_SerialPort"),
  63. CimMappingProperty("DeviceId"),
  64. WdmMappingClass("MSSerial_PortName"),
  65. WdmMappingProperty("PortName"),
  66. DerivedClassType("Concrete")
  67. ]
  68. class SerialConcrete : Win32_SerialPort
  69. {
  70. uint32 IrqNumber;
  71. uint32 IrqVector;
  72. uint32 IrqLevel;
  73. uint64 IrqAffinityMask;
  74. string InterruptType;
  75. uint64 BaseIOAddress;
  76. };
  77. [Dynamic, Provider("wmimap"),
  78. WdmShadowClass("MSStorageDriver_FailurePredictFunction"),
  79. DerivedClassType("Concrete")
  80. ]
  81. class DiskConcrete : Win32_DiskDrive
  82. {
  83. [
  84. Implemented : ToInstance
  85. ]
  86. void GetFailurePredictionCapability([out, ValueMap{"0", "1", "2", "3"},
  87. Value{"Not Supported",
  88. "Ioctl Based",
  89. "IDE SMART",
  90. "SCSI SMART"} : amended
  91. ] uint32 Capability);
  92. [
  93. Implemented : ToInstance
  94. ]
  95. void AllowPerformanceHit([in] boolean Allow);
  96. };