// ntddcdrm.h
typedef struct _CDROM_SUB_Q_DATA_FORMAT {
UCHAR Format;
UCHAR Track;
} CDROM_SUB_Q_DATA_FORMAT, *PCDROM_SUB_Q_DATA_FORMAT;
View the official Windows Driver Kit DDI referenceNo description available.
The CDROM_SUB_Q_DATA_FORMAT structure is used with device control IRPs of type IOCTL_CDROM_READ_Q_CHANNEL.
FormatSpecifies which subset of the Q data the read operation should return, as follows:
Indicates that the read operation should return position information such as the track number, the index number, the absolute address, and the track relative address. If the IOCTL_CDROM_Q_CHANNEL device control IRP specifies this format, the information is returned in the SUB_Q_CURRENT_POSITION member of the SUB_Q_CHANNEL_DATA structure.
Indicates that the read operation should return the media catalog number. If the IOCTL_CDROM_Q_CHANNEL device control IRP specifies this format, the information is returned in the SUB_Q_MEDIA_CATALOG_NUMBER member of the SUB_Q_CHANNEL_DATA structure.
Indicates that the read operation should return the ISO/IEC 3901 Track International Standard Recording Code (ISRC). This code gives a unique number to an audio track. If the IOCTL_CDROM_Q_CHANNEL device control IRP specifies this format, the information is returned in the SUB_Q_TRACK_ISRC member of the SUB_Q_CHANNEL_DATA structure.
TrackIndicates the track number where the CD-ROM driver must read the Q subchannel data. If Format is set to IOCTL_CDROM_MEDIA_CATALOG, then the Track member must be set to zero.
The CDROM_SUB_Q_DATA_FORMAT structure indicates the track from which to read the Q part of the subchannel data and the format of the read.