Expand Minimize

KsDefaultDispatchPower function

The KsDefaultDispatchPower function is a default main Power dispatch handler. Notifications regarding the Functional Device Object can be directed here. This function passes all notifications to the PnP Device Object previously set with KsSetDevicePnpAndBaseObject, and assumes the use of a device header.

Syntax


KSDDKAPI NTSTATUS NTAPI KsDefaultDispatchPower(
  _In_  PDEVICE_OBJECT DeviceObject,
  _In_  PIRP Irp
);

Parameters

DeviceObject [in]

Specifies the Functional Device Object.

Irp [in]

Specifies the Power IRP.

Return value

Returns the status of the underlying Physical Device Object IRP processing.

Remarks

The KsDefaultDispatchPower function is useful when there is no extra cleanup needed on power IRPs, or just as a way of completing any power IRP. It also allows specific file objects, such as the default clock imlementation, to attach themselves to the power IRPs using KsSetPowerDispatch, and act on them before they are completed by this routine. This function calls each power dispatch routine before completing the IRP.

Requirements

Header

Ks.h (include Ks.h)

Library

Ks.lib

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft