KsGetDeviceForDeviceObject function

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

Syntax


PKSDEVICE KsGetDeviceForDeviceObject(
  _In_ PDEVICE_OBJECT FunctionalDeviceObject
);

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.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.

Header

Ks.h (include Ks.h)

Library

Ks.lib

IRQL

Any level

See also

KSDEVICE
DRIVER_OBJECT
DEVICE_OBJECT
KsGetFilterFromFileObject

 

 

Send comments about this topic to Microsoft

Show: