KsQueryDevicePnpObject function (ks.h)

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.

Syntax

KSDDKAPI PDEVICE_OBJECT KsQueryDevicePnpObject(
  [in] KSDEVICE_HEADER Header
);

Parameters

[in] Header

Points to a header previously allocated by KsAllocateDeviceHeader whose PnP device object is to be returned.

Return value

The KsQueryDevicePnpObject function returns the previously set PnP device object. If none was set, it returns NULL.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib

See also

KsDefaultDispatchPnp