WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA structure (wdfdevice.h)

[Applies to KMDF only]

Note

This structure is for Microsoft internal use only.

The WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA structure describes a state change within a device's power policy state machine.

Syntax

typedef struct _WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA {
  WDF_STATE_NOTIFICATION_TYPE Type;
  union {
    struct {
      WDF_DEVICE_POWER_POLICY_STATE CurrentState;
      WDF_DEVICE_POWER_POLICY_STATE NewState;
    } EnterState;
    struct {
      WDF_DEVICE_POWER_POLICY_STATE CurrentState;
    } PostProcessState;
    struct {
      WDF_DEVICE_POWER_POLICY_STATE CurrentState;
      WDF_DEVICE_POWER_POLICY_STATE NewState;
    } LeaveState;
  } Data;
} WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA;

Members

Type

A WDF_STATE_NOTIFICATION_TYPE-typed enumerator that identifies the type of state change that is being reported.

Data

Data.EnterState

Data.EnterState.CurrentState

If Type is StateNotificationEnterState, this WDF_DEVICE_POWER_POLICY_STATE-typed enumerator identifies the state machine's current state.

Data.EnterState.NewState

If Type is StateNotificationEnterState, this WDF_DEVICE_POWER_POLICY_STATE-typed enumerator identifies the state machine's next state.

Data.PostProcessState

Data.PostProcessState.CurrentState

If Type is StateNotificationEnterState, this WDF_DEVICE_POWER_POLICY_STATE-typed enumerator identifies the state machine's current state.

Data.LeaveState

Data.LeaveState.CurrentState

If Type is StateNotificationEnterState, this WDF_DEVICE_POWER_POLICY_STATE-typed enumerator identifies the state machine's current state.

Data.LeaveState.NewState

If Type is StateNotificationEnterState, this WDF_DEVICE_POWER_POLICY_STATE-typed enumerator identifies the state machine's next state.

Remarks

The WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA structure is an input argument to a driver's EvtDevicePowerPolicyStateChange callback function.

Requirements

Requirement Value
Minimum KMDF version 1.0
Header wdfdevice.h (include Wdf.h)

See also

WdfDeviceInitRegisterPowerPolicyStateChangeCallback