_WDF_DEVICE_POWER_POLICY_STATE Enumeration

[Applies to KMDF only]

The WDF_DEVICE_POWER_POLICY_STATE enumeration identifies all of the states that the framework's power policy state machine can enter.

Syntax

typedef enum _WDF_DEVICE_POWER_POLICY_STATE {
  WdfDevStatePwrPolInvalid                                                     ,
  WdfDevStatePwrPolObjectCreated                                               ,
  WdfDevStatePwrPolStarting                                                    ,
  WdfDevStatePwrPolStartingSucceeded                                           ,
  WdfDevStatePwrPolStartingFailed                                              ,
  WdfDevStatePwrPolStartingDecideS0Wake                                        ,
  WdfDevStatePwrPolStartedIdleCapable                                          ,
  WdfDevStatePwrPolTimerExpiredNoWake                                          ,
  WdfDevStatePwrPolTimerExpiredNoWakeCompletePowerDown                         ,
  WdfDevStatePwrPolWaitingUnarmed                                              ,
  WdfDevStatePwrPolWaitingUnarmedQueryIdle                                     ,
  WdfDevStatePwrPolS0NoWakePowerUp                                             ,
  WdfDevStatePwrPolS0NoWakeCompletePowerUp                                     ,
  WdfDevStatePwrPolSystemSleepFromDeviceWaitingUnarmed                         ,
  WdfDevStatePwrPolSystemSleepNeedWake                                         ,
  WdfDevStatePwrPolSystemSleepNeedWakeCompletePowerUp                          ,
  WdfDevStatePwrPolSystemSleepPowerRequestFailed                               ,
  WdfDevStatePwrPolCheckPowerPageable                                          ,
  WdfDevStatePwrPolSleepingWakeWakeArrived                                     ,
  WdfDevStatePwrPolSleepingWakeRevertArmWake                                   ,
  WdfDevStatePwrPolSystemAsleepWakeArmed                                       ,
  WdfDevStatePwrPolSystemWakeDeviceWakeEnabled                                 ,
  WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceled                     ,
  WdfDevStatePwrPolSystemWakeDeviceWakeDisarm                                  ,
  WdfDevStatePwrPolSystemWakeDeviceWakeTriggered                               ,
  WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0                             ,
  WdfDevStatePwrPolSystemWakeDeviceWokeDisarm                                  ,
  WdfDevStatePwrPolSleepingWakeWakeArrivedNP                                   ,
  WdfDevStatePwrPolSleepingWakeRevertArmWakeNP                                 ,
  WdfDevStatePwrPolSleepingWakePowerDownFailed                                 ,
  WdfDevStatePwrPolSleepingWakePowerDownFailedWakeCanceled                     ,
  WdfDevStatePwrPolSystemAsleepWakeArmedNP                                     ,
  WdfDevStatePwrPolSystemWakeDeviceWakeEnabledNP                               ,
  WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceledNP                   ,
  WdfDevStatePwrPolSystemWakeDeviceWakeDisarmNP                                ,
  WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredNP                             ,
  WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0NP                           ,
  WdfDevStatePwrPolSystemWakeDeviceWokeDisarmNP                                ,
  WdfDevStatePwrPolSystemWakeDeviceWakeCompletePowerUp                         ,
  WdfDevStatePwrPolSleeping                                                    ,
  WdfDevStatePwrPolSleepingNoWakePowerDown                                     ,
  WdfDevStatePwrPolSleepingNoWakeCompletePowerDown                             ,
  WdfDevStatePwrPolSleepingNoWakeDxRequestFailed                               ,
  WdfDevStatePwrPolSleepingWakePowerDown                                       ,
  WdfDevStatePwrPolSleepingSendWake                                            ,
  WdfDevStatePwrPolSystemAsleepNoWake                                          ,
  WdfDevStatePwrPolSystemWakeDeviceWakeDisabled                                ,
  WdfDevStatePwrPolSystemWakeDeviceToD0                                        ,
  WdfDevStatePwrPolSystemWakeDeviceToD0CompletePowerUp                         ,
  WdfDevStatePwrPolSystemWakeQueryIdle                                         ,
  WdfDevStatePwrPolStartedWakeCapable                                          ,
  WdfDevStatePwrPolTimerExpiredDecideUsbSS                                     ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDown                            ,
  WdfDevStatePwrPolTimerExpiredWakeCapableSendWake                             ,
  WdfDevStatePwrPolTimerExpiredWakeCapableUsbSS                                ,
  WdfDevStatePwrPolTimerExpiredWakeCapableWakeArrived                          ,
  WdfDevStatePwrPolTimerExpiredWakeCapableCancelWake                           ,
  WdfDevStatePwrPolTimerExpiredWakeCapableWakeCanceled                         ,
  WdfDevStatePwrPolTimerExpiredWakeCapableCleanup                              ,
  WdfDevStatePwrPolTimerExpiredWakeCapableDxAllocFailed                        ,
  WdfDevStatePwrPolTimerExpiredWakeCompletedPowerDown                          ,
  WdfDevStatePwrPolTimerExpiredWakeCompletedPowerUp                            ,
  WdfDevStatePwrPolWaitingArmedUsbSS                                           ,
  WdfDevStatePwrPolWaitingArmed                                                ,
  WdfDevStatePwrPolWaitingArmedQueryIdle                                       ,
  WdfDevStatePwrPolIoPresentArmed                                              ,
  WdfDevStatePwrPolIoPresentArmedWakeCanceled                                  ,
  WdfDevStatePwrPolS0WakeDisarm                                                ,
  WdfDevStatePwrPolS0WakeCompletePowerUp                                       ,
  WdfDevStatePwrPolTimerExpiredWakeSucceeded                                   ,
  WdfDevStatePwrPolTimerExpiredWakeCompletedDisarm                             ,
  WdfDevStatePwrPolTimerExpiredWakeCapableWakeSucceeded                        ,
  WdfDevStatePwrPolTimerExpiredWakeCapableWakeFailed                           ,
  WdfDevStatePwrPolWakeFailedUsbSS                                             ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedCancelWake            ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeCanceled          ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedUsbSS                 ,
  WdfDevStatePwrPolCancelingWakeForSystemSleep                                 ,
  WdfDevStatePwrPolCancelingWakeForSystemSleepWakeCanceled                     ,
  WdfDevStatePwrPolDisarmingWakeForSystemSleepCompletePowerUp                  ,
  WdfDevStatePwrPolPowerUpForSystemSleepFailed                                 ,
  WdfDevStatePwrPolWokeFromS0UsbSS                                             ,
  WdfDevStatePwrPolWokeFromS0                                                  ,
  WdfDevStatePwrPolWokeFromS0NotifyDriver                                      ,
  WdfDevStatePwrPolStoppingResetDevice                                         ,
  WdfDevStatePwrPolStoppingResetDeviceCompletePowerUp                          ,
  WdfDevStatePwrPolStoppingResetDeviceFailed                                   ,
  WdfDevStatePwrPolStoppingD0                                                  ,
  WdfDevStatePwrPolStoppingD0Failed                                            ,
  WdfDevStatePwrPolStoppingDisarmWake                                          ,
  WdfDevStatePwrPolStoppingDisarmWakeCancelWake                                ,
  WdfDevStatePwrPolStoppingDisarmWakeWakeCanceled                              ,
  WdfDevStatePwrPolStopping                                                    ,
  WdfDevStatePwrPolStoppingFailed                                              ,
  WdfDevStatePwrPolStoppingSendStatus                                          ,
  WdfDevStatePwrPolStoppingCancelTimer                                         ,
  WdfDevStatePwrPolStoppingWaitForIdleTimeout                                  ,
  WdfDevStatePwrPolStoppingCancelUsbSS                                         ,
  WdfDevStatePwrPolStoppingWaitForUsbSSCompletion                              ,
  WdfDevStatePwrPolStoppingCancelWake                                          ,
  WdfDevStatePwrPolStopped                                                     ,
  WdfDevStatePwrPolCancelUsbSS                                                 ,
  WdfDevStatePwrPolStarted                                                     ,
  WdfDevStatePwrPolStartedCancelTimer                                          ,
  WdfDevStatePwrPolStartedWaitForIdleTimeout                                   ,
  WdfDevStatePwrPolStartedWakeCapableCancelTimerForSleep                       ,
  WdfDevStatePwrPolStartedWakeCapableWaitForIdleTimeout                        ,
  WdfDevStatePwrPolStartedWakeCapableSleepingUsbSS                             ,
  WdfDevStatePwrPolStartedIdleCapableCancelTimerForSleep                       ,
  WdfDevStatePwrPolStartedIdleCapableWaitForIdleTimeout                        ,
  WdfDevStatePwrPolDeviceD0PowerRequestFailed                                  ,
  WdfDevStatePwrPolDevicePowerRequestFailed                                    ,
  WdfDevStatePwrPolGotoDx                                                      ,
  WdfDevStatePwrPolGotoDxInDx                                                  ,
  WdfDevStatePwrPolDx                                                          ,
  WdfDevStatePwrPolGotoD0                                                      ,
  WdfDevStatePwrPolGotoD0InD0                                                  ,
  WdfDevStatePwrPolFinal                                                       ,
  WdfDevStatePwrPolSleepingPowerDownNotProcessed                               ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownNotProcessed                ,
  WdfDevStatePwrPolTimerExpiredNoWakePowerDownNotProcessed                     ,
  WdfDevStatePwrPolTimerExpiredNoWakePoweredDownDisableIdleTimer               ,
  WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown                         ,
  WdfDevStatePwrPolStoppingPoweringUp                                          ,
  WdfDevStatePwrPolStoppingPoweringDown                                        ,
  WdfDevStatePwrPolPowerUpForSystemSleepNotSeen                                ,
  WdfDevStatePwrPolWaitingArmedStoppingCancelUsbSS                             ,
  WdfDevStatePwrPolWaitingArmedWakeFailedCancelUsbSS                           ,
  WdfDevStatePwrPolWaitingArmedIoPresentCancelUsbSS                            ,
  WdfDevStatePwrPolWaitingArmedWakeSucceededCancelUsbSS                        ,
  WdfDevStatePwrPolCancelingUsbSSForSystemSleep                                ,
  WdfDevStatePwrPolStoppingD0CancelUsbSS                                       ,
  WdfDevStatePwrPolStartingPoweredUp                                           ,
  WdfDevStatePwrPolIdleCapableDeviceIdle                                       ,
  WdfDevStatePwrPolDeviceIdleReturnToActive                                    ,
  WdfDevStatePwrPolDeviceIdleSleeping                                          ,
  WdfDevStatePwrPolDeviceIdleStopping                                          ,
  WdfDevStatePwrPolTimerExpiredNoWakeUndoPowerDown                             ,
  WdfDevStatePwrPolWakeCapableDeviceIdle                                       ,
  WdfDevStatePwrPolWakeCapableUsbSSCompleted                                   ,
  WdfDevStatePwrPolTimerExpiredWakeCapableUndoPowerDown                        ,
  WdfDevStatePwrPolTimerExpiredWakeCompletedHardwareStarted                    ,
  WdfDevStatePwrPolStoppedRemoving                                             ,
  WdfDevStatePwrPolRemoved                                                     ,
  WdfDevStatePwrPolRestarting                                                  ,
  WdfDevStatePwrPolRestartingFailed                                            ,
  WdfDevStatePwrPolStartingPoweredUpFailed                                     ,
  WdfDevStatePwrPolTimerExpiredNoWakeReturnToActive                            ,
  WdfDevStatePwrPolWaitingArmedWakeInterruptFired                              ,
  WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFired                          ,
  WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFiredNP                        ,
  WdfDevStatePwrPolTimerExpiredWakeCapableWakeInterruptArrived                 ,
  WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeInterruptArrived  ,
  WdfDevStatePwrPolWaitingArmedWakeInterruptFiredDuringPowerDown               ,
  WdfDevStatePwrPolNull
} WDF_DEVICE_POWER_POLICY_STATE, *PWDF_DEVICE_POWER_POLICY_STATE;

Constants

WdfDevStatePwrPolInvalid
WdfDevStatePwrPolObjectCreated
WdfDevStatePwrPolStarting
WdfDevStatePwrPolStartingSucceeded
WdfDevStatePwrPolStartingFailed
WdfDevStatePwrPolStartingDecideS0Wake
WdfDevStatePwrPolStartedIdleCapable
WdfDevStatePwrPolTimerExpiredNoWake
WdfDevStatePwrPolTimerExpiredNoWakeCompletePowerDown
WdfDevStatePwrPolWaitingUnarmed
WdfDevStatePwrPolWaitingUnarmedQueryIdle
WdfDevStatePwrPolS0NoWakePowerUp
WdfDevStatePwrPolS0NoWakeCompletePowerUp
WdfDevStatePwrPolSystemSleepFromDeviceWaitingUnarmed
WdfDevStatePwrPolSystemSleepNeedWake
WdfDevStatePwrPolSystemSleepNeedWakeCompletePowerUp
WdfDevStatePwrPolSystemSleepPowerRequestFailed
WdfDevStatePwrPolCheckPowerPageable
WdfDevStatePwrPolSleepingWakeWakeArrived
WdfDevStatePwrPolSleepingWakeRevertArmWake
WdfDevStatePwrPolSystemAsleepWakeArmed
WdfDevStatePwrPolSystemWakeDeviceWakeEnabled
WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceled
WdfDevStatePwrPolSystemWakeDeviceWakeDisarm
WdfDevStatePwrPolSystemWakeDeviceWakeTriggered
WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0
WdfDevStatePwrPolSystemWakeDeviceWokeDisarm
WdfDevStatePwrPolSleepingWakeWakeArrivedNP
WdfDevStatePwrPolSleepingWakeRevertArmWakeNP
WdfDevStatePwrPolSleepingWakePowerDownFailed
WdfDevStatePwrPolSleepingWakePowerDownFailedWakeCanceled
WdfDevStatePwrPolSystemAsleepWakeArmedNP
WdfDevStatePwrPolSystemWakeDeviceWakeEnabledNP
WdfDevStatePwrPolSystemWakeDeviceWakeEnabledWakeCanceledNP
WdfDevStatePwrPolSystemWakeDeviceWakeDisarmNP
WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredNP
WdfDevStatePwrPolSystemWakeDeviceWakeTriggeredS0NP
WdfDevStatePwrPolSystemWakeDeviceWokeDisarmNP
WdfDevStatePwrPolSystemWakeDeviceWakeCompletePowerUp
WdfDevStatePwrPolSleeping
WdfDevStatePwrPolSleepingNoWakePowerDown
WdfDevStatePwrPolSleepingNoWakeCompletePowerDown
WdfDevStatePwrPolSleepingNoWakeDxRequestFailed
WdfDevStatePwrPolSleepingWakePowerDown
WdfDevStatePwrPolSleepingSendWake
WdfDevStatePwrPolSystemAsleepNoWake
WdfDevStatePwrPolSystemWakeDeviceWakeDisabled
WdfDevStatePwrPolSystemWakeDeviceToD0
WdfDevStatePwrPolSystemWakeDeviceToD0CompletePowerUp
WdfDevStatePwrPolSystemWakeQueryIdle
WdfDevStatePwrPolStartedWakeCapable
WdfDevStatePwrPolTimerExpiredDecideUsbSS
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDown
WdfDevStatePwrPolTimerExpiredWakeCapableSendWake
WdfDevStatePwrPolTimerExpiredWakeCapableUsbSS
WdfDevStatePwrPolTimerExpiredWakeCapableWakeArrived
WdfDevStatePwrPolTimerExpiredWakeCapableCancelWake
WdfDevStatePwrPolTimerExpiredWakeCapableWakeCanceled
WdfDevStatePwrPolTimerExpiredWakeCapableCleanup
WdfDevStatePwrPolTimerExpiredWakeCapableDxAllocFailed
WdfDevStatePwrPolTimerExpiredWakeCompletedPowerDown
WdfDevStatePwrPolTimerExpiredWakeCompletedPowerUp
WdfDevStatePwrPolWaitingArmedUsbSS
WdfDevStatePwrPolWaitingArmed
WdfDevStatePwrPolWaitingArmedQueryIdle
WdfDevStatePwrPolIoPresentArmed
WdfDevStatePwrPolIoPresentArmedWakeCanceled
WdfDevStatePwrPolS0WakeDisarm
WdfDevStatePwrPolS0WakeCompletePowerUp
WdfDevStatePwrPolTimerExpiredWakeSucceeded
WdfDevStatePwrPolTimerExpiredWakeCompletedDisarm
WdfDevStatePwrPolTimerExpiredWakeCapableWakeSucceeded
WdfDevStatePwrPolTimerExpiredWakeCapableWakeFailed
WdfDevStatePwrPolWakeFailedUsbSS
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedCancelWake
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeCanceled
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedUsbSS
WdfDevStatePwrPolCancelingWakeForSystemSleep
WdfDevStatePwrPolCancelingWakeForSystemSleepWakeCanceled
WdfDevStatePwrPolDisarmingWakeForSystemSleepCompletePowerUp
WdfDevStatePwrPolPowerUpForSystemSleepFailed
WdfDevStatePwrPolWokeFromS0UsbSS
WdfDevStatePwrPolWokeFromS0
WdfDevStatePwrPolWokeFromS0NotifyDriver
WdfDevStatePwrPolStoppingResetDevice
WdfDevStatePwrPolStoppingResetDeviceCompletePowerUp
WdfDevStatePwrPolStoppingResetDeviceFailed
WdfDevStatePwrPolStoppingD0
WdfDevStatePwrPolStoppingD0Failed
WdfDevStatePwrPolStoppingDisarmWake
WdfDevStatePwrPolStoppingDisarmWakeCancelWake
WdfDevStatePwrPolStoppingDisarmWakeWakeCanceled
WdfDevStatePwrPolStopping
WdfDevStatePwrPolStoppingFailed
WdfDevStatePwrPolStoppingSendStatus
WdfDevStatePwrPolStoppingCancelTimer
WdfDevStatePwrPolStoppingWaitForIdleTimeout
WdfDevStatePwrPolStoppingCancelUsbSS
WdfDevStatePwrPolStoppingWaitForUsbSSCompletion
WdfDevStatePwrPolStoppingCancelWake
WdfDevStatePwrPolStopped
WdfDevStatePwrPolCancelUsbSS
WdfDevStatePwrPolStarted
WdfDevStatePwrPolStartedCancelTimer
WdfDevStatePwrPolStartedWaitForIdleTimeout
WdfDevStatePwrPolStartedWakeCapableCancelTimerForSleep
WdfDevStatePwrPolStartedWakeCapableWaitForIdleTimeout
WdfDevStatePwrPolStartedWakeCapableSleepingUsbSS
WdfDevStatePwrPolStartedIdleCapableCancelTimerForSleep
WdfDevStatePwrPolStartedIdleCapableWaitForIdleTimeout
WdfDevStatePwrPolDeviceD0PowerRequestFailed
WdfDevStatePwrPolDevicePowerRequestFailed
WdfDevStatePwrPolGotoDx
WdfDevStatePwrPolGotoDxInDx
WdfDevStatePwrPolDx
WdfDevStatePwrPolGotoD0
WdfDevStatePwrPolGotoD0InD0
WdfDevStatePwrPolFinal
WdfDevStatePwrPolSleepingPowerDownNotProcessed
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownNotProcessed
WdfDevStatePwrPolTimerExpiredNoWakePowerDownNotProcessed
WdfDevStatePwrPolTimerExpiredNoWakePoweredDownDisableIdleTimer
WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown
WdfDevStatePwrPolStoppingPoweringUp
WdfDevStatePwrPolStoppingPoweringDown
WdfDevStatePwrPolPowerUpForSystemSleepNotSeen
WdfDevStatePwrPolWaitingArmedStoppingCancelUsbSS
WdfDevStatePwrPolWaitingArmedWakeFailedCancelUsbSS
WdfDevStatePwrPolWaitingArmedIoPresentCancelUsbSS
WdfDevStatePwrPolWaitingArmedWakeSucceededCancelUsbSS
WdfDevStatePwrPolCancelingUsbSSForSystemSleep
WdfDevStatePwrPolStoppingD0CancelUsbSS
WdfDevStatePwrPolStartingPoweredUp
WdfDevStatePwrPolIdleCapableDeviceIdle
WdfDevStatePwrPolDeviceIdleReturnToActive
WdfDevStatePwrPolDeviceIdleSleeping
WdfDevStatePwrPolDeviceIdleStopping
WdfDevStatePwrPolTimerExpiredNoWakeUndoPowerDown
WdfDevStatePwrPolWakeCapableDeviceIdle
WdfDevStatePwrPolWakeCapableUsbSSCompleted
WdfDevStatePwrPolTimerExpiredWakeCapableUndoPowerDown
WdfDevStatePwrPolTimerExpiredWakeCompletedHardwareStarted
WdfDevStatePwrPolStoppedRemoving
WdfDevStatePwrPolRemoved
WdfDevStatePwrPolRestarting
WdfDevStatePwrPolRestartingFailed
WdfDevStatePwrPolStartingPoweredUpFailed
WdfDevStatePwrPolTimerExpiredNoWakeReturnToActive
WdfDevStatePwrPolWaitingArmedWakeInterruptFired
WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFired
WdfDevStatePwrPolSystemWakeDeviceWakeInterruptFiredNP
WdfDevStatePwrPolTimerExpiredWakeCapableWakeInterruptArrived
WdfDevStatePwrPolTimerExpiredWakeCapablePowerDownFailedWakeInterruptArrived
WdfDevStatePwrPolWaitingArmedWakeInterruptFiredDuringPowerDown
WdfDevStatePwrPolNull

Remarks

The WDF_DEVICE_POWER_POLICY_STATE enumeration is used as a member type in the WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA structure and as the return type for the WdfDeviceGetDevicePowerPolicyState method.

Requirements

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