IOCTL_KS_READ_STREAM IOCTL

An application can use IOCTL_KS_READ_STREAM to read data from a pin. The application passes IOCTL_KS_READ_STREAM with the parameters described below to the KsSynchronousDeviceControl function.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

The application places a pointer to an array of KSSTREAM_HEADER structures in the InBuffer parameter. Each describes a packet of data to be read. The headers can also contain the presentation time and duration.

Input Buffer Length

The InLength parameter specifies the size, in bytes, of the input buffer contents.

Output Buffer

Stream data is returned in the buffers pointed to by the stream headers. Upon return, BytesReturned contains the number of bytes read.

Output Buffer Length

OutLength specifies the size, in bytes, of the output buffer contents.

Input / Output Buffer

Input / Output Buffer Length

Status Block

If the request is successful, the Status member is set to STATUS_SUCCESS.

Requirements

   
Header ks.h (include Ks.h)

See Also

IOCTL_KS_WRITE_STREAM

KsProbeStreamIrp