32#define IOCTL_CDROM_BASE FILE_DEVICE_CD_ROM
34#define IOCTL_CDROM_READ_TOC \
35 CTL_CODE(IOCTL_CDROM_BASE, 0x0000, METHOD_BUFFERED, FILE_READ_ACCESS)
37#define IOCTL_CDROM_SEEK_AUDIO_MSF \
38 CTL_CODE(IOCTL_CDROM_BASE, 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)
40#define IOCTL_CDROM_STOP_AUDIO \
41 CTL_CODE(IOCTL_CDROM_BASE, 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS)
43#define IOCTL_CDROM_PAUSE_AUDIO \
44 CTL_CODE(IOCTL_CDROM_BASE, 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)
46#define IOCTL_CDROM_RESUME_AUDIO \
47 CTL_CODE(IOCTL_CDROM_BASE, 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)
49#define IOCTL_CDROM_GET_VOLUME \
50 CTL_CODE(IOCTL_CDROM_BASE, 0x0005, METHOD_BUFFERED, FILE_READ_ACCESS)
52#define IOCTL_CDROM_PLAY_AUDIO_MSF \
53 CTL_CODE(IOCTL_CDROM_BASE, 0x0006, METHOD_BUFFERED, FILE_READ_ACCESS)
55#define IOCTL_CDROM_SET_VOLUME \
56 CTL_CODE(IOCTL_CDROM_BASE, 0x000A, METHOD_BUFFERED, FILE_READ_ACCESS)
58#define IOCTL_CDROM_READ_Q_CHANNEL \
59 CTL_CODE(IOCTL_CDROM_BASE, 0x000B, METHOD_BUFFERED, FILE_READ_ACCESS)
61#define IOCTL_CDROM_GET_CONTROL \
62 CTL_CODE(IOCTL_CDROM_BASE, 0x000D, METHOD_BUFFERED, FILE_READ_ACCESS)
64#define IOCTL_CDROM_GET_LAST_SESSION \
65 CTL_CODE(IOCTL_CDROM_BASE, 0x000E, METHOD_BUFFERED, FILE_READ_ACCESS)
67#define IOCTL_CDROM_RAW_READ \
68 CTL_CODE(IOCTL_CDROM_BASE, 0x000F, METHOD_OUT_DIRECT, FILE_READ_ACCESS)
70#define IOCTL_CDROM_DISK_TYPE \
71 CTL_CODE(IOCTL_CDROM_BASE, 0x0010, METHOD_BUFFERED, FILE_ANY_ACCESS)
73#define IOCTL_CDROM_GET_DRIVE_GEOMETRY \
74 CTL_CODE(IOCTL_CDROM_BASE, 0x0013, METHOD_BUFFERED, FILE_READ_ACCESS)
76#define IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX \
77 CTL_CODE(IOCTL_CDROM_BASE, 0x0014, METHOD_BUFFERED, FILE_READ_ACCESS)
79#define IOCTL_CDROM_READ_TOC_EX \
80 CTL_CODE(IOCTL_CDROM_BASE, 0x0015, METHOD_BUFFERED, FILE_READ_ACCESS)
82#define IOCTL_CDROM_GET_CONFIGURATION \
83 CTL_CODE(IOCTL_CDROM_BASE, 0x0016, METHOD_BUFFERED, FILE_READ_ACCESS)
85#define IOCTL_CDROM_EXCLUSIVE_ACCESS \
86 CTL_CODE(IOCTL_CDROM_BASE, 0x0017, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
88#define IOCTL_CDROM_SET_SPEED \
89 CTL_CODE(IOCTL_CDROM_BASE, 0x0018, METHOD_BUFFERED, FILE_READ_ACCESS)
91#define IOCTL_CDROM_GET_INQUIRY_DATA \
92 CTL_CODE(IOCTL_CDROM_BASE, 0x0019, METHOD_BUFFERED, FILE_READ_ACCESS)
94#define IOCTL_CDROM_ENABLE_STREAMING \
95 CTL_CODE(IOCTL_CDROM_BASE, 0x001A, METHOD_BUFFERED, FILE_READ_ACCESS)
97#define IOCTL_CDROM_SEND_OPC_INFORMATION \
98 CTL_CODE(IOCTL_CDROM_BASE, 0x001B, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
100#define IOCTL_CDROM_GET_PERFORMANCE \
101 CTL_CODE(IOCTL_CDROM_BASE, 0x001C, METHOD_BUFFERED, FILE_READ_ACCESS)
103#define IOCTL_CDROM_CHECK_VERIFY \
104 CTL_CODE(IOCTL_CDROM_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS)
106#define IOCTL_CDROM_MEDIA_REMOVAL \
107 CTL_CODE(IOCTL_CDROM_BASE, 0x0201, METHOD_BUFFERED, FILE_READ_ACCESS)
109#define IOCTL_CDROM_EJECT_MEDIA \
110 CTL_CODE(IOCTL_CDROM_BASE, 0x0202, METHOD_BUFFERED, FILE_READ_ACCESS)
112#define IOCTL_CDROM_LOAD_MEDIA \
113 CTL_CODE(IOCTL_CDROM_BASE, 0x0203, METHOD_BUFFERED, FILE_READ_ACCESS)
115#define IOCTL_CDROM_RESERVE \
116 CTL_CODE(IOCTL_CDROM_BASE, 0x0204, METHOD_BUFFERED, FILE_READ_ACCESS)
118#define IOCTL_CDROM_RELEASE \
119 CTL_CODE(IOCTL_CDROM_BASE, 0x0205, METHOD_BUFFERED, FILE_READ_ACCESS)
121#define IOCTL_CDROM_FIND_NEW_DEVICES \
122 CTL_CODE(IOCTL_CDROM_BASE, 0x0206, METHOD_BUFFERED, FILE_READ_ACCESS)
124#define IOCTL_CDROM_SIMBAD \
125 CTL_CODE(IOCTL_CDROM_BASE, 0x1003, METHOD_BUFFERED, FILE_READ_ACCESS)
128#define MINIMUM_CDROM_INQUIRY_SIZE 36
129#define MAXIMUM_CDROM_INQUIRY_SIZE 260
131#define MAXIMUM_NUMBER_TRACKS 100
132#define MAXIMUM_CDROM_SIZE 804
133#define MINIMUM_CDROM_READ_TOC_EX_SIZE 2
145#define CDROM_DISK_AUDIO_TRACK 0x00000001
146#define CDROM_DISK_DATA_TRACK 0x00000002
162#define CDROM_READ_TOC_EX_FORMAT_TOC 0x00
163#define CDROM_READ_TOC_EX_FORMAT_SESSION 0x01
164#define CDROM_READ_TOC_EX_FORMAT_FULL_TOC 0x02
165#define CDROM_READ_TOC_EX_FORMAT_PMA 0x03
166#define CDROM_READ_TOC_EX_FORMAT_ATIP 0x04
167#define CDROM_READ_TOC_EX_FORMAT_CDTEXT 0x05
185#define IOCTL_CDROM_SUB_Q_CHANNEL 0x00
186#define IOCTL_CDROM_CURRENT_POSITION 0x01
187#define IOCTL_CDROM_MEDIA_CATALOG 0x02
188#define IOCTL_CDROM_TRACK_ISRC 0x03
202#define CDROM_TOC_SIZE sizeof(CDROM_TOC)
246#define CDROM_CD_TEXT_PACK_ALBUM_NAME 0x80
247#define CDROM_CD_TEXT_PACK_PERFORMER 0x81
248#define CDROM_CD_TEXT_PACK_SONGWRITER 0x82
249#define CDROM_CD_TEXT_PACK_COMPOSER 0x83
250#define CDROM_CD_TEXT_PACK_ARRANGER 0x84
251#define CDROM_CD_TEXT_PACK_MESSAGES 0x85
252#define CDROM_CD_TEXT_PACK_DISC_ID 0x86
253#define CDROM_CD_TEXT_PACK_GENRE 0x87
254#define CDROM_CD_TEXT_PACK_TOC_INFO 0x88
255#define CDROM_CD_TEXT_PACK_TOC_INFO2 0x89
256#define CDROM_CD_TEXT_PACK_UPC_EAN 0x8e
257#define CDROM_CD_TEXT_PACK_SIZE_INFO 0x8f
282#define ADR_NO_MODE_INFORMATION 0x0
283#define ADR_ENCODES_CURRENT_POSITION 0x1
284#define ADR_ENCODES_MEDIA_CATALOG 0x2
285#define ADR_ENCODES_ISRC 0x3
313#define AUDIO_STATUS_NOT_SUPPORTED 0x00
314#define AUDIO_STATUS_IN_PROGRESS 0x11
315#define AUDIO_STATUS_PAUSED 0x12
316#define AUDIO_STATUS_PLAY_COMPLETE 0x13
317#define AUDIO_STATUS_PLAY_ERROR 0x14
318#define AUDIO_STATUS_NO_STATUS 0x15
364#define AUDIO_WITH_PREEMPHASIS 0x1
365#define DIGITAL_COPY_PERMITTED 0x2
366#define AUDIO_DATA_TRACK 0x4
367#define TWO_FOUR_CHANNEL_AUDIO 0x8
387#define CD_RAW_READ_C2_SIZE ( 296 )
388#define CD_RAW_READ_SUBCODE_SIZE ( 96)
389#define CD_RAW_SECTOR_WITH_C2_SIZE (2352+296 )
390#define CD_RAW_SECTOR_WITH_SUBCODE_SIZE (2352 +96)
391#define CD_RAW_SECTOR_WITH_C2_AND_SUBCODE_SIZE (2352+296+96)
402#define CDROM_EXCLUSIVE_CALLER_LENGTH 64
404#define CDROM_LOCK_IGNORE_VOLUME (1 << 0)
405#define CDROM_NO_MEDIA_NOTIFICATIONS (1 << 1)
407#define CDROM_NOT_IN_EXCLUSIVE_MODE 0
408#define CDROM_IN_EXCLUSIVE_MODE 1
struct _CDROM_PERFORMANCE_HEADER * PCDROM_PERFORMANCE_HEADER
union _SUB_Q_CHANNEL_DATA SUB_Q_CHANNEL_DATA
struct _SUB_Q_HEADER SUB_Q_HEADER
struct _CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR
struct _CDROM_AUDIO_CONTROL * PCDROM_AUDIO_CONTROL
struct _VOLUME_CONTROL VOLUME_CONTROL
_CDROM_PERFORMANCE_EXCEPTION_TYPE
@ CdromNominalPerformance
@ CdromEntirePerformanceList
@ CdromPerformanceExceptionsOnly
struct _CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR
#define CDROM_EXCLUSIVE_CALLER_LENGTH
struct _CDROM_PERFORMANCE_HEADER CDROM_PERFORMANCE_HEADER
struct _VOLUME_CONTROL * PVOLUME_CONTROL
struct _CDROM_EXCLUSIVE_LOCK * PCDROM_EXCLUSIVE_LOCK
struct _CDROM_SET_STREAMING * PCDROM_SET_STREAMING
struct _SUB_Q_CURRENT_POSITION * PSUB_Q_CURRENT_POSITION
struct _CDROM_EXCLUSIVE_LOCK_STATE CDROM_EXCLUSIVE_LOCK_STATE
struct _CDROM_TOC_ATIP_DATA_BLOCK * PCDROM_TOC_ATIP_DATA_BLOCK
#define MAXIMUM_NUMBER_TRACKS
struct _CDROM_SET_SPEED * PCDROM_SET_SPEED
_EXCLUSIVE_ACCESS_REQUEST_TYPE
@ ExclusiveAccessQueryState
@ ExclusiveAccessLockDevice
@ ExclusiveAccessUnlockDevice
struct _SUB_Q_TRACK_ISRC * PSUB_Q_TRACK_ISRC
struct _CDROM_PLAY_AUDIO_MSF * PCDROM_PLAY_AUDIO_MSF
struct __RAW_READ_INFO RAW_READ_INFO
struct _CDROM_TOC_PMA_DATA CDROM_TOC_PMA_DATA
enum _STREAMING_CONTROL_REQUEST_TYPE * PSTREAMING_CONTROL_REQUEST_TYPE
struct _CDROM_TOC * PCDROM_TOC
struct _CDROM_EXCLUSIVE_ACCESS * PCDROM_EXCLUSIVE_ACCESS
struct _CDROM_READ_TOC_EX * PCDROM_READ_TOC_EX
struct _CDROM_TOC_ATIP_DATA CDROM_TOC_ATIP_DATA
enum _WRITE_ROTATION WRITE_ROTATION
struct _CDROM_WRITE_SPEED_DESCRIPTOR * PCDROM_WRITE_SPEED_DESCRIPTOR
struct _CDROM_NOMINAL_PERFORMANCE_DESCRIPTOR * PCDROM_NOMINAL_PERFORMANCE_DESCRIPTOR
struct _CDROM_TOC_ATIP_DATA * PCDROM_TOC_ATIP_DATA
struct _CDROM_TOC_CD_TEXT_DATA_BLOCK * PCDROM_TOC_CD_TEXT_DATA_BLOCK
struct _CDROM_TOC_ATIP_DATA_BLOCK CDROM_TOC_ATIP_DATA_BLOCK
struct _CDROM_DISK_DATA * PCDROM_DISK_DATA
struct _CDROM_TOC_CD_TEXT_DATA_BLOCK CDROM_TOC_CD_TEXT_DATA_BLOCK
enum _EXCLUSIVE_ACCESS_REQUEST_TYPE EXCLUSIVE_ACCESS_REQUEST_TYPE
struct _CDROM_PLAY_AUDIO_MSF CDROM_PLAY_AUDIO_MSF
enum _TRACK_MODE_TYPE TRACK_MODE_TYPE
struct _SUB_Q_MEDIA_CATALOG_NUMBER SUB_Q_MEDIA_CATALOG_NUMBER
enum _CDROM_OPC_INFO_TYPE CDROM_OPC_INFO_TYPE
struct _CDROM_PERFORMANCE_REQUEST * PCDROM_PERFORMANCE_REQUEST
struct _CDROM_SIMPLE_OPC_INFO CDROM_SIMPLE_OPC_INFO
_CDROM_PERFORMANCE_TOLERANCE_TYPE
@ Cdrom10Nominal20Exceptions
struct _CDROM_STREAMING_CONTROL CDROM_STREAMING_CONTROL
struct _CDROM_WRITE_SPEED_REQUEST * PCDROM_WRITE_SPEED_REQUEST
struct _CDROM_TOC_CD_TEXT_DATA CDROM_TOC_CD_TEXT_DATA
enum _CDROM_PERFORMANCE_TOLERANCE_TYPE * PCDROM_PERFORMANCE_TOLERANCE_TYPE
struct _CDROM_TOC_FULL_TOC_DATA_BLOCK * PCDROM_TOC_FULL_TOC_DATA_BLOCK
struct _CDROM_TOC_FULL_TOC_DATA_BLOCK CDROM_TOC_FULL_TOC_DATA_BLOCK
struct _TRACK_DATA TRACK_DATA
_STREAMING_CONTROL_REQUEST_TYPE
@ CdromStreamingEnableForWriteOnly
@ CdromStreamingEnableForReadOnly
@ CdromStreamingEnableForReadWrite
_CDROM_PERFORMANCE_REQUEST_TYPE
@ CdromPerformanceRequest
struct _CDROM_TOC_CD_TEXT_DATA * PCDROM_TOC_CD_TEXT_DATA
struct _CDROM_WRITE_SPEED_DESCRIPTOR CDROM_WRITE_SPEED_DESCRIPTOR
struct _CDROM_EXCLUSIVE_LOCK CDROM_EXCLUSIVE_LOCK
enum _CDROM_PERFORMANCE_REQUEST_TYPE CDROM_PERFORMANCE_REQUEST_TYPE
struct _CDROM_SEEK_AUDIO_MSF * PCDROM_SEEK_AUDIO_MSF
enum _EXCLUSIVE_ACCESS_REQUEST_TYPE * PEXCLUSIVE_ACCESS_REQUEST_TYPE
enum _CDROM_OPC_INFO_TYPE * PCDROM_OPC_INFO_TYPE
struct _SUB_Q_HEADER * PSUB_Q_HEADER
struct _CDROM_EXCLUSIVE_LOCK_STATE * PCDROM_EXCLUSIVE_LOCK_STATE
struct _CDROM_SET_STREAMING CDROM_SET_STREAMING
struct _CDROM_SIMPLE_OPC_INFO * PCDROM_SIMPLE_OPC_INFO
enum _STREAMING_CONTROL_REQUEST_TYPE STREAMING_CONTROL_REQUEST_TYPE
struct _SUB_Q_CURRENT_POSITION SUB_Q_CURRENT_POSITION
struct _CDROM_DISK_DATA CDROM_DISK_DATA
enum _CDROM_PERFORMANCE_TYPE CDROM_PERFORMANCE_TYPE
struct _CDROM_AUDIO_CONTROL CDROM_AUDIO_CONTROL
enum _CDROM_PERFORMANCE_REQUEST_TYPE * PCDROM_PERFORMANCE_REQUEST_TYPE
struct _CDROM_TOC_FULL_TOC_DATA * PCDROM_TOC_FULL_TOC_DATA
struct _CDROM_TOC_SESSION_DATA CDROM_TOC_SESSION_DATA
struct _SUB_Q_MEDIA_CATALOG_NUMBER * PSUB_Q_MEDIA_CATALOG_NUMBER
enum _CDROM_PERFORMANCE_TOLERANCE_TYPE CDROM_PERFORMANCE_TOLERANCE_TYPE
struct _CDROM_SUB_Q_DATA_FORMAT CDROM_SUB_Q_DATA_FORMAT
enum _CDROM_SPEED_REQUEST CDROM_SPEED_REQUEST
enum _TRACK_MODE_TYPE * PTRACK_MODE_TYPE
struct _CDROM_TOC_FULL_TOC_DATA CDROM_TOC_FULL_TOC_DATA
struct _CDROM_TOC_SESSION_DATA * PCDROM_TOC_SESSION_DATA
struct _CDROM_READ_TOC_EX CDROM_READ_TOC_EX
struct _CDROM_EXCLUSIVE_ACCESS CDROM_EXCLUSIVE_ACCESS
struct _CDROM_WRITE_SPEED_REQUEST CDROM_WRITE_SPEED_REQUEST
enum _CDROM_PERFORMANCE_EXCEPTION_TYPE CDROM_PERFORMANCE_EXCEPTION_TYPE
union _SUB_Q_CHANNEL_DATA * PSUB_Q_CHANNEL_DATA
struct _CDROM_TOC_PMA_DATA * PCDROM_TOC_PMA_DATA
struct _CDROM_TOC CDROM_TOC
struct _TRACK_DATA * PTRACK_DATA
struct _CDROM_PERFORMANCE_REQUEST CDROM_PERFORMANCE_REQUEST
enum _WRITE_ROTATION * PWRITE_ROTATION
struct _CDROM_SUB_Q_DATA_FORMAT * PCDROM_SUB_Q_DATA_FORMAT
struct _CDROM_SET_SPEED CDROM_SET_SPEED
enum _CDROM_SPEED_REQUEST * PCDROM_SPEED_REQUEST
struct _CDROM_STREAMING_CONTROL * PCDROM_STREAMING_CONTROL
enum _CDROM_PERFORMANCE_EXCEPTION_TYPE * PCDROM_PERFORMANCE_EXCEPTION_TYPE
enum _CDROM_PERFORMANCE_TYPE * PCDROM_PERFORMANCE_TYPE
struct __RAW_READ_INFO * PRAW_READ_INFO
struct _SUB_Q_TRACK_ISRC SUB_Q_TRACK_ISRC
struct _CDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR * PCDROM_EXCEPTION_PERFORMANCE_DESCRIPTOR
struct _CDROM_SEEK_AUDIO_MSF CDROM_SEEK_AUDIO_MSF
_In_ ULONG _In_ ULONG _In_ ULONG Length
USHORT LogicalBlocksPerSecond
EXCLUSIVE_ACCESS_REQUEST_TYPE RequestType
UCHAR CallerName[CDROM_EXCLUSIVE_CALLER_LENGTH]
UCHAR CallerName[CDROM_EXCLUSIVE_CALLER_LENGTH]
CDROM_EXCLUSIVE_ACCESS Access
WRITE_ROTATION RotationControl
CDROM_SPEED_REQUEST RequestType
WRITE_ROTATION RotationControl
CDROM_SPEED_REQUEST RequestType
CDROM_OPC_INFO_TYPE RequestType
STREAMING_CONTROL_REQUEST_TYPE RequestType
CDROM_TOC_ATIP_DATA_BLOCK Descriptors[0]
_ANONYMOUS_UNION union _CDROM_TOC_CD_TEXT_DATA_BLOCK::@3160 DUMMYUNIONNAME
CDROM_TOC_CD_TEXT_DATA_BLOCK Descriptors[0]
UCHAR LastCompleteSession
UCHAR FirstCompleteSession
CDROM_TOC_FULL_TOC_DATA_BLOCK Descriptors[0]
CDROM_TOC_FULL_TOC_DATA_BLOCK Descriptors[0]
UCHAR FirstCompleteSession
UCHAR LastCompleteSession
TRACK_DATA TrackData[MAXIMUM_NUMBER_TRACKS]
UCHAR WriteRotationControl
CDROM_PERFORMANCE_REQUEST_TYPE RequestType
UCHAR TrackRelativeAddress[4]
TRACK_MODE_TYPE TrackMode
SUB_Q_MEDIA_CATALOG_NUMBER MediaCatalog
SUB_Q_TRACK_ISRC TrackIsrc
SUB_Q_CURRENT_POSITION CurrentPosition
_Reserved_ PVOID Reserved