KsGetDeviceForDeviceObject - NtDoc

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

KSDDKAPI PKSDEVICE KsGetDeviceForDeviceObject(
  [in] PDEVICE_OBJECT FunctionalDeviceObject
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksgetdevicefordeviceobject)

KsGetDeviceForDeviceObject function

Description

The KsGetDeviceForDeviceObject function returns the AVStream device structure for a given functional device object.

Parameters

FunctionalDeviceObject [in]

A pointer to the DEVICE_OBJECT for which to return the corresponding KSDEVICE structure.

Return value

KsGetDeviceForDeviceObject returns a pointer to the KSDEVICE structure corresponding to FunctionalDeviceObject. It returns NULL if FunctionalDeviceObject is a child PDO.

See also

DEVICE_OBJECT

DRIVER_OBJECT

KSDEVICE

KsGetFilterFromFileObject