EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION EvtWdfDevicePowerPolicyStateChangeNotification;

VOID EvtWdfDevicePowerPolicyStateChangeNotification(
  [in] WDFDEVICE Device,
  [in] PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA NotificationData
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfdevice-evt_wdf_device_power_policy_state_change_notification)

EVT_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION callback function

Description

[Applies to KMDF only]

[!NOTE] This callback function is for Microsoft-internal use only.

A driver's EvtDevicePowerPolicyStateChange event callback function informs the driver that a device's power policy state machine is moving from one state to another.

Parameters

Device [in]

A handle to a framework device object.

NotificationData [in]

A pointer to a framework-supplied WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA structure that identifies the state machine's old and new states.

Remarks

To register an EvtDevicePowerPolicyStateChange callback function, a driver must call WdfDeviceInitRegisterPowerPolicyStateChangeCallback.

For more information, see State Machines in the Framework.

If the EvtDevicePowerPolicyStateChange callback function calls WdfDeviceStopIdle with the WaitForD0 parameter set to TRUE, the framework's power policy state machine will become deadlocked.

See also

EvtDevicePnpStateChange

EvtDevicePowerStateChange