IOCTL_CDROM_READ_TOC (Windows CE 5.0)
This IOCTL returns the table of contents of the medium. The DeviceIoControl function processes this IOCTL.
[in] Set to IOCTL_CDROM_READ_TOC to retrieve the table of contents information and store it into the CDROM_TOC structure.
[in] Set to NULL.
[in] Set to zero.
[in, out] On input, set to the address of an allocated CDROM_TOC structure. On output, a filled CDROM_TOC structure.
[in] Set to the size of the CDROM_TOC.
[in, out] On input, address of a DWORD that receives the size in bytes of the data returned. On output, set to the number of bytes written to the supplied buffer.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To obtain extended error information, call GetLastError.
The maximum number of tracks is 100.
OS Versions: Windows CE .NET 4.0 and later.
Send Feedback on this topic to the authors