// ks.h
KSDDKAPI PDEVICE_OBJECT KsQueryDevicePnpObject(
[in] KSDEVICE_HEADER Header
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsQueryDevicePnpObject function returns the PnP device object that can be stored in the device header. This is the next device object on the PnP stack and is the device object that PnP requests are forwarded to if KsDefaultDispatchPnp is used.
Header [in]Points to a header previously allocated by KsAllocateDeviceHeader whose PnP device object is to be returned.
The KsQueryDevicePnpObject function returns the previously set PnP device object. If none was set, it returns NULL.