KsSetDevicePnpAndBaseObject function (ks.h)

The KsSetDevicePnpAndBaseObject function sets the PnP device object in the device header, which 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 VOID KsSetDevicePnpAndBaseObject(
  [in] KSDEVICE_HEADER Header,
  [in] PDEVICE_OBJECT  PnpDeviceObject,
       PDEVICE_OBJECT  BaseObject
);

Parameters

[in] Header

Points to a header previously allocated by KsAllocateDeviceHeader in which to put the PnP device object.

[in] PnpDeviceObject

Specifies the PnP device object to place in the device header, overwriting any previously set device object.

BaseObject

Specifies the base device object to which this device header is attached. This must be set if KsRecalculateStackDepth is used.

Return value

None

Requirements

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

See also

KsAllocateDeviceHeader

KsRecalculateStackDepth