IOCTL_CDROM_ENABLE_STREAMING control code

Enables or disables CDROM streaming mode on a per-handle basis for raw read and write requests.

To perform this operation, call the DeviceIoControl function and specify the IOCTL_CDROM_ENABLE_STREAMING I/O control request as the dwIoControlCode parameter.

Input Parameters

CDROM_STREAMING_CONTROL

Output Parameters

None.

I/O Status Block

The Information field is set to the number of bytes returned.

Because of status code propagation from other APIs, the Status field can be set to (but not limited to) the following:

STATUS_SUCCESS

The request completed successfully.

STATUS_INFO_LENGTH_MISMATCH

The input buffer length is smaller than required.

STATUS_INVALID_PARAMETER

The request type is not one of the four in types defined in the STREAMING_CONTROL_REQUEST_TYPE enumeration.

STATUS_INVALID_HANDLE

Cannot find the file object context in the request.

STATUS_INVALID_DEVICE_REQUEST

The requested streaming mode is not supported.

Remarks

By default, streaming is disabled for all newly opened raw CDROM handles. A playback application that does not want to use the file system and prefers to work with raw data should open two file handles for the same device: a regular one for file system metadata and a streaming one for real-time files.

Requirements

Header

Winioctl.h (include Winioctl.h)

See also

DeviceIoControl
CDROM_STREAMING_CONTROL

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft