Expand Minimize

WDF_DEVICE_POWER_NOTIFICATION_DATA structure

[Applies to KMDF only]

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

Syntax


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;

Members

Type

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

Data
EnterState
CurrentState

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

NewState

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

PostProcessState
CurrentState

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

LeaveState
CurrentState

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

NewState

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

Remarks

The WDF_DEVICE_POWER_NOTIFICATION_DATA structure is an input argument to a driver's EvtDevicePowerStateChange callback function.

Requirements

Minimum KMDF version

1.0

Header

Wdfdevice.h (include Wdf.h)

See also

WdfDeviceInitRegisterPowerStateChangeCallback

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft