次の方法で共有


IOCTL_CDROM_GET_SENSE_DATA (Windows Embedded CE 6.0)

1/6/2010

This IOCTL specifies retrieval of CD-ROM sense information contained in a CD_SENSE_DATA structure. The DeviceIoControl function processes this IOCTL.

Parameters

  • dwIoControlCode
    [in] Set to IOCTL_CDROM_GET_SENSE_DATA to retrieve CD-ROM sense information and fill the CD_SENSE_DATA structure.
  • lpInBuf
    [in] Set to NULL.
  • nInBufSize
    [in] Set to zero.
  • lpOutBuf
    [in, out] On input, set to the address of an allocated CD_SENSE_DATA structure. On output, a filled CD_SENSE_DATA structure.
  • nOutBufSize
    [in] Set to the size of the CD_SENSE_DATA.
  • 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 function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To obtain extended error information, call GetLastError.

Remarks

This IOCTL is from the Small Computer System Interface Specification.

Requirements

Header cdioctl.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Block Driver IOCTLs
CD_SENSE_DATA
DeviceIoControl

Other Resources

Block Drivers