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.

172 lines
4.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. RedBook.mof
  5. Abstract:
  6. This file defines all of the MOF classes supported by the redbook driver
  7. Revision History:
  8. --*/
  9. // #define MOFRESOURCENAME L"Redbook"
  10. [abstract]
  11. class MSRedbook
  12. {
  13. };
  14. [Dynamic,
  15. Provider("WMIProv"),
  16. WMI,
  17. Description("Digital Audio Filter Driver Information (redbook)"),
  18. GuidName1("GUID_REDBOOK_WMI_STD_DATA"),
  19. GuidName2("MSRedbook_DriverInformationGuid"),
  20. HeaderName("REDBOOK_WMI_STD_DATA"),
  21. guid("{b90550e7-ae0a-11d1-a571-00c04fa34730}"),
  22. locale("MS\\0x409")
  23. ]
  24. class MSRedbook_DriverInformation
  25. {
  26. [key, read]
  27. string InstanceName;
  28. [read]
  29. boolean Active;
  30. [WmiDataId(1),
  31. DefineDataId("REDBOOK_WMI_NUMBER_OF_BUFFERS"),
  32. read,
  33. write,
  34. Description("NumberOfBuffers*SectorsPerRead*2352 is the amount of memory used to reduce skipping." )
  35. ]
  36. uint32 NumberOfBuffers;
  37. [WmiDataId(2),
  38. DefineDataId("REDBOOK_WMI_SECTORS_PER_READ"),
  39. read,
  40. write,
  41. Description("Sectors (2352 bytes each) per read.")
  42. ]
  43. uint32 SectorsPerRead;
  44. [WmiDataId(3),
  45. DefineDataId("REDBOOK_WMI_SECTORS_PER_READ_MASK"),
  46. read,
  47. write,
  48. Description("Bitwise mask of supported sectors per read for this drive. The lowest bit is one sector reads. If all bits are set, there are no restrictions.")
  49. ]
  50. uint32 SectorsPerReadMask;
  51. [WmiDataId(4),
  52. DefineDataId("REDBOOK_WMI_MAX_SECTORS_PER_READ"),
  53. read,
  54. write,
  55. Description("Maximum sectors per read (depends on both adapter and drive).")
  56. ]
  57. uint32 MaximumSectorsPerRead;
  58. [WmiDataId(5),
  59. DefineDataId("REDBOOK_WMI_PLAY_ENABLED"),
  60. read,
  61. write,
  62. Description("PlayEnabled indicates the drive is currently using the RedBook filter.")
  63. ]
  64. boolean PlayEnabled;
  65. [WmiDataId(6),
  66. DefineDataId("REDBOOK_WMI_CDDA_SUPPORTED"),
  67. read,
  68. write,
  69. Description("CDDASupported indicates the drive supports digital audio for some sector sizes.")
  70. ]
  71. boolean CDDASupported;
  72. [WmiDataId(7),
  73. DefineDataId("REDBOOK_WMI_CDDA_ACCURATE"),
  74. read,
  75. write,
  76. Description("CDDAAccurate indicates the drive acccurately reads digital audio. This ensures the highest quality audio")
  77. ]
  78. boolean CDDAAccurate;
  79. [WmiDataId(8),
  80. read,
  81. Description("Reserved for future use")
  82. ]
  83. boolean Reserved1;
  84. };
  85. [Dynamic,
  86. Provider("WMIProv"),
  87. WMI,
  88. Description("Digital Audio Filter Driver Performance Data (redbook)"),
  89. GuidName1("GUID_REDBOOK_WMI_PERF_DATA"),
  90. GuidName2("MSRedbook_PerformanceGuid"),
  91. HeaderName("REDBOOK_WMI_PERF_DATA"),
  92. guid("{b90550e8-ae0a-11d1-a571-00c04fa34730}"),
  93. locale("MS\\0x409")
  94. ]
  95. class MSRedbook_Performance
  96. {
  97. [key, read]
  98. string InstanceName;
  99. [read]
  100. boolean Active;
  101. [WmiDataId(1),
  102. DefineDataId("REDBOOK_WMI_PERF_TIME_READING_DELAY"),
  103. read,
  104. Description("Seconds spent ready to read, but unused. (*1E-7)" )
  105. ]
  106. sint64 TimeReadDelay;
  107. [WmiDataId(2),
  108. DefineDataId("REDBOOK_WMI_PERF_TIME_READING"),
  109. read,
  110. Description("Seconds spent reading data from source. (*1E-7)")
  111. ]
  112. sint64 TimeReading;
  113. [WmiDataId(3),
  114. DefineDataId("REDBOOK_WMI_PERF_TIME_STREAMING_DELAY"),
  115. read,
  116. Description("Seconds spent ready to stream, but unused. (*1E-7)")
  117. ]
  118. sint64 TimeStreamDelay;
  119. [WmiDataId(4),
  120. DefineDataId("REDBOOK_WMI_PERF_TIME_STREAMING"),
  121. read,
  122. Description("Seconds spent streaming data. (*1E-7)")
  123. ]
  124. sint64 TimeStreaming;
  125. [WmiDataId(5),
  126. DefineDataId("REDBOOK_WMI_PERF_DATA_PROCESSED"),
  127. read,
  128. Description("Number of bytes of data read and streamed.")
  129. ]
  130. sint64 DataProcessed;
  131. [WmiDataId(6),
  132. DefineDataId("REDBOOK_WMI_PERF_STREAM_PAUSED_COUNT"),
  133. read,
  134. Description("Number of times the stream has paused due to insufficient stream buffers.")
  135. ]
  136. uint32 StreamPausedCount;
  137. };