KsGetDeviceForDeviceObject function (ks.h)
The KsGetDeviceForDeviceObject function returns the AVStream device structure for a given functional device object.
KSDDKAPI PKSDEVICE KsGetDeviceForDeviceObject(
[in] PDEVICE_OBJECT FunctionalDeviceObject
);
[in] FunctionalDeviceObject
A pointer to the DEVICE_OBJECT for which to return the corresponding KSDEVICE structure.
KsGetDeviceForDeviceObject returns a pointer to the KSDEVICE structure corresponding to FunctionalDeviceObject. It returns NULL if FunctionalDeviceObject is a child PDO.
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 |