KsGetDeviceForDeviceObject function (ks.h)

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

Syntax

KSDDKAPI PKSDEVICE KsGetDeviceForDeviceObject(
  [in] PDEVICE_OBJECT FunctionalDeviceObject
);

Parameters

[in] FunctionalDeviceObject

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.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL Any level

See also

DEVICE_OBJECT

DRIVER_OBJECT

KSDEVICE

KsGetFilterFromFileObject