KsSetDevicePnpAndBaseObject function

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


void KsSetDevicePnpAndBaseObject(
  _In_ KSDEVICE_HEADER Header ,
  _In_ PDEVICE_OBJECT  PnpDeviceObject ,
  _In_ PDEVICE_OBJECT  BaseDevice 
);

Parameters

Header [in]

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

PnpDeviceObject [in]

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

BaseDevice [in]

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

Return value

None

Requirements

Target platform

Universal

Header

Ks.h (include Ks.h)

Library

Ks.lib

See also

KsAllocateDeviceHeader
KsRecalculateStackDepth

 

 

Send comments about this topic to Microsoft

Show: