IOCTL_CDROM_TEST_UNIT_READY (Windows Embedded CE 6.0)
1/6/2010
This IOCTL retrieves disc ready information and fills the CDROM_TESTUNITREADY structure. The DeviceIoControl function processes this IOCTL.
Parameters
- dwIoControlCode
[in] Set to IOCTL_CDROM_TEST_UNIT_READY to retrieve disc ready information and fill the CDROM_TESTUNITREADY structure.
- lpInBuf
[in] Set to NULL.
- nInBufSize
[in] Set to zero.
- lpOutBuf
[in, out] On input, set to the address of an allocated CDROM_TESTUNITREADY structure. This is the memory needed for the structure and info storage. On output, a filled CDROM_TESTUNITREADY structure.
- nOutBufSize
[in] Set to the size of the CDROM_TESTUNITREADY.
- lpBytesReturned
[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.
Return Values
If the unit is ready, returns TRUE. The bUnitReady member of CDROM_TESTUNITREADY is set to TRUE.
If the unit is not ready, returns FALSE and GetLastError returns ERROR_NOT_READY.
Requirements
Header | cdioctl.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
Block Driver IOCTLs
CDROM_TESTUNITREADY
DeviceIoControl