Expand Minimize

WDF_POWER_DEVICE_STATE enumeration

[Applies to KMDF and UMDF]

The WDF_POWER_DEVICE_STATE enumeration identifies the device power states that a device might support.

Syntax


typedef enum _WDF_POWER_DEVICE_STATE { 
  WdfPowerDeviceInvalid                = 0,
  WdfPowerDeviceD0                     = 1,
  WdfPowerDeviceD1                     = 2,
  WdfPowerDeviceD2                     = 3,
  WdfPowerDeviceD3                     = 4,
  WdfPowerDeviceD3Final                = 5,
  WdfPowerDevicePrepareForHibernation  = 6,
  WdfPowerDeviceMaximum                = 7
} WDF_POWER_DEVICE_STATE, *PWDF_POWER_DEVICE_STATE;

Constants

WdfPowerDeviceInvalid

The device power state is invalid or unknown.

WdfPowerDeviceD0

The D0 device power state.

WdfPowerDeviceD1

The D1 device power state.

WdfPowerDeviceD2

The D2 device power state.

WdfPowerDeviceD3

The D3 device power state.

WdfPowerDeviceD3Final

Represents the final time that the device enters the D3 device power state. Typically, this enumerator means that the system is being turned off, the device is about to be removed, or a resource rebalance is in progress. The device might have been already removed.

WdfPowerDevicePrepareForHibernation

The device supports hibernation files, and the system is ready to hibernate by entering system state S4. The driver must not turn off the device. For more information, see Supporting Special Files.

WdfPowerDeviceMaximum

The maximum enumerator value for this enumeration.

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfdevice.h (include Wdf.h)

See also

EvtDeviceD0Entry
EvtDeviceD0Exit

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.