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.

100 lines
3.8 KiB

  1. #ifndef _ntddredb_w_
  2. #define _ntddredb_w_
  3. // MSRedbook_DriverInformation - REDBOOK_WMI_STD_DATA
  4. // Digital Audio Filter Driver Information (redbook)
  5. #define GUID_REDBOOK_WMI_STD_DATA \
  6. { 0xb90550e7,0xae0a,0x11d1, { 0xa5,0x71,0x00,0xc0,0x4f,0xa3,0x47,0x30 } }
  7. DEFINE_GUID(MSRedbook_DriverInformationGuid, \
  8. 0xb90550e7,0xae0a,0x11d1,0xa5,0x71,0x00,0xc0,0x4f,0xa3,0x47,0x30);
  9. typedef struct _REDBOOK_WMI_STD_DATA
  10. {
  11. // NumberOfBuffers*SectorsPerRead*2352 is the amount of memory used to reduce skipping.
  12. ULONG NumberOfBuffers;
  13. #define REDBOOK_WMI_NUMBER_OF_BUFFERS_SIZE sizeof(ULONG)
  14. #define REDBOOK_WMI_NUMBER_OF_BUFFERS_ID 1
  15. // Sectors (2352 bytes each) per read.
  16. ULONG SectorsPerRead;
  17. #define REDBOOK_WMI_SECTORS_PER_READ_SIZE sizeof(ULONG)
  18. #define REDBOOK_WMI_SECTORS_PER_READ_ID 2
  19. // 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.
  20. ULONG SectorsPerReadMask;
  21. #define REDBOOK_WMI_SECTORS_PER_READ_MASK_SIZE sizeof(ULONG)
  22. #define REDBOOK_WMI_SECTORS_PER_READ_MASK_ID 3
  23. // Maximum sectors per read (depends on both adapter and drive).
  24. ULONG MaximumSectorsPerRead;
  25. #define REDBOOK_WMI_MAX_SECTORS_PER_READ_SIZE sizeof(ULONG)
  26. #define REDBOOK_WMI_MAX_SECTORS_PER_READ_ID 4
  27. // PlayEnabled indicates the drive is currently using the RedBook filter.
  28. BOOLEAN PlayEnabled;
  29. #define REDBOOK_WMI_PLAY_ENABLED_SIZE sizeof(BOOLEAN)
  30. #define REDBOOK_WMI_PLAY_ENABLED_ID 5
  31. // CDDASupported indicates the drive supports digital audio for some sector sizes.
  32. BOOLEAN CDDASupported;
  33. #define REDBOOK_WMI_CDDA_SUPPORTED_SIZE sizeof(BOOLEAN)
  34. #define REDBOOK_WMI_CDDA_SUPPORTED_ID 6
  35. // CDDAAccurate indicates the drive acccurately reads digital audio. This ensures the highest quality audio
  36. BOOLEAN CDDAAccurate;
  37. #define REDBOOK_WMI_CDDA_ACCURATE_SIZE sizeof(BOOLEAN)
  38. #define REDBOOK_WMI_CDDA_ACCURATE_ID 7
  39. // Reserved for future use
  40. BOOLEAN Reserved1;
  41. #define REDBOOK_WMI_STD_DATA_Reserved1_SIZE sizeof(BOOLEAN)
  42. #define REDBOOK_WMI_STD_DATA_Reserved1_ID 8
  43. } REDBOOK_WMI_STD_DATA, *PREDBOOK_WMI_STD_DATA;
  44. // MSRedbook_Performance - REDBOOK_WMI_PERF_DATA
  45. // Digital Audio Filter Driver Performance Data (redbook)
  46. #define GUID_REDBOOK_WMI_PERF_DATA \
  47. { 0xb90550e8,0xae0a,0x11d1, { 0xa5,0x71,0x00,0xc0,0x4f,0xa3,0x47,0x30 } }
  48. DEFINE_GUID(MSRedbook_PerformanceGuid, \
  49. 0xb90550e8,0xae0a,0x11d1,0xa5,0x71,0x00,0xc0,0x4f,0xa3,0x47,0x30);
  50. typedef struct _REDBOOK_WMI_PERF_DATA
  51. {
  52. // Seconds spent ready to read, but unused. (*1E-7)
  53. LONGLONG TimeReadDelay;
  54. #define REDBOOK_WMI_PERF_TIME_READING_DELAY_SIZE sizeof(LONGLONG)
  55. #define REDBOOK_WMI_PERF_TIME_READING_DELAY_ID 1
  56. // Seconds spent reading data from source. (*1E-7)
  57. LONGLONG TimeReading;
  58. #define REDBOOK_WMI_PERF_TIME_READING_SIZE sizeof(LONGLONG)
  59. #define REDBOOK_WMI_PERF_TIME_READING_ID 2
  60. // Seconds spent ready to stream, but unused. (*1E-7)
  61. LONGLONG TimeStreamDelay;
  62. #define REDBOOK_WMI_PERF_TIME_STREAMING_DELAY_SIZE sizeof(LONGLONG)
  63. #define REDBOOK_WMI_PERF_TIME_STREAMING_DELAY_ID 3
  64. // Seconds spent streaming data. (*1E-7)
  65. LONGLONG TimeStreaming;
  66. #define REDBOOK_WMI_PERF_TIME_STREAMING_SIZE sizeof(LONGLONG)
  67. #define REDBOOK_WMI_PERF_TIME_STREAMING_ID 4
  68. // Number of bytes of data read and streamed.
  69. LONGLONG DataProcessed;
  70. #define REDBOOK_WMI_PERF_DATA_PROCESSED_SIZE sizeof(LONGLONG)
  71. #define REDBOOK_WMI_PERF_DATA_PROCESSED_ID 5
  72. // Number of times the stream has paused due to insufficient stream buffers.
  73. ULONG StreamPausedCount;
  74. #define REDBOOK_WMI_PERF_STREAM_PAUSED_COUNT_SIZE sizeof(ULONG)
  75. #define REDBOOK_WMI_PERF_STREAM_PAUSED_COUNT_ID 6
  76. } REDBOOK_WMI_PERF_DATA, *PREDBOOK_WMI_PERF_DATA;
  77. #endif