// wdfdevice.h
typedef struct _WDF_DEVICE_POWER_NOTIFICATION_DATA {
WDF_STATE_NOTIFICATION_TYPE Type;
union {
struct {
WDF_DEVICE_POWER_STATE CurrentState;
WDF_DEVICE_POWER_STATE NewState;
} EnterState;
struct {
WDF_DEVICE_POWER_STATE CurrentState;
} PostProcessState;
struct {
WDF_DEVICE_POWER_STATE CurrentState;
WDF_DEVICE_POWER_STATE NewState;
} LeaveState;
} Data;
} WDF_DEVICE_POWER_NOTIFICATION_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
[!NOTE] This structure is for Microsoft internal use only.
The WDF_DEVICE_POWER_NOTIFICATION_DATA structure describes a state change within a device's power state machine.
TypeA WDF_STATE_NOTIFICATION_TYPE-typed enumerator that identifies the type of state change that is being reported.
DataData.EnterStateData.EnterState.CurrentStateIf Type is StateNotificationEnterState, this WDF_DEVICE_POWER_STATE-typed enumerator identifies the state machine's current state.
Data.EnterState.NewStateIf Type is StateNotificationEnterState, this WDF_DEVICE_POWER_STATE-typed enumerator identifies the state machine's next state.
Data.PostProcessStateData.PostProcessState.CurrentStateIf Type is StateNotificationEnterState, this WDF_DEVICE_POWER_STATE-typed enumerator identifies the state machine's current state.
Data.LeaveStateData.LeaveState.CurrentStateIf Type is StateNotificationEnterState, this WDF_DEVICE_POWER_STATE-typed enumerator identifies the state machine's current state.
Data.LeaveState.NewStateIf Type is StateNotificationEnterState, this WDF_DEVICE_POWER_STATE-typed enumerator identifies the state machine's next state.
The WDF_DEVICE_POWER_NOTIFICATION_DATA structure is an input argument to a driver's EvtDevicePowerStateChange callback function.
WdfDeviceInitRegisterPowerStateChangeCallback