Share via


IOCTL_CDROM_EJECT_MEDIA (Windows CE 5.0)

Send Feedback

The IOCTL ejects the CD-ROM. The DeviceIoControl function processes this IOCTL.

Parameters

  • dwIoControlCode
    [in] Set to IOCTL_CDROM_EJECT_MEDIA to eject the CD-ROM.
  • lpInBuf
    [in] Set to NULL.
  • nInBufSize
    [in] Set to zero.
  • lpOutBuf
    [in] Set to NULL.
  • nOutBufSize
    [in] Set to zero.
  • lpBytesReturned
    [in] Set to NULL.

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.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Cdioctl.h.

See Also

Block Drivers | DeviceIoControl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.