// ks.h
KSDDKAPI PKSDEVICE KsGetDeviceForDeviceObject(
[in] PDEVICE_OBJECT FunctionalDeviceObject
);
View the official Windows Driver Kit DDI reference
No description available.
The KsGetDeviceForDeviceObject function returns the AVStream device structure for a given functional device object.
FunctionalDeviceObject
[in]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.