Send Feedback

This IOCTL plays audio from the specified range of the medium. The DeviceIoControl function processes this IOCTL.


  • dwIoControlCode
    [in] Set to IOCTL_CDROM_PLAY_AUDIO_MSF to play audio based on the information in the CDROM_PLAY_AUDIO_MSF structure.
  • lpInBuf
    [in] Set to the address of an allocated CDROM_PLAY_AUDIO_MSF structure.
  • nInBufSize
    [in] Set to the size of the CDROM_PLAY_AUDIO_MSF structure.
  • lpOutBuf
    [in] Set to NULL.
  • nOutBufSize
    [in] Set to zero.
  • lpBytesReturned
    [in, out] On input, address of a DWORD that receives the size in bytes of the data sent. On output, set to the number of bytes written from 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.


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

See Also

Block Drivers | CDROM_PLAY_AUDIO_MSF | DeviceIoControl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.