IOCTL_KS_READ_STREAM - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

// CTL_CODE(0x002f, 0x005, METHOD_NEITHER, FILE_READ_ACCESS)
#define IOCTL_KS_READ_STREAM 0x002F4017

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ks-ioctl_ks_read_stream)

IOCTL_KS_READ_STREAM IOCTL

Description

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.

Parameters

Major code

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.

See also

IOCTL_KS_WRITE_STREAM

KsProbeStreamIrp