WDF_DEVICE_POWER_STATE enumeration (wdfdevice.h)

[Applies to KMDF only]

Note

This enumeration is for Microsoft internal use only.

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

Syntax

typedef enum _WDF_DEVICE_POWER_STATE {
  WdfDevStatePowerInvalid = 0x00,
  WdfDevStatePowerObjectCreated = 0x300,
  WdfDevStatePowerCheckDeviceType = 0x301,
  WdfDevStatePowerCheckDeviceTypeNP = 0x302 | WdfDevStateNP,
  WdfDevStatePowerCheckParentState = 0x303,
  WdfDevStatePowerCheckParentStateNP = 0x304 | WdfDevStateNP,
  WdfDevStatePowerEnablingWakeAtBus = 0x305,
  WdfDevStatePowerEnablingWakeAtBusNP = 0x306 | WdfDevStateNP,
  WdfDevStatePowerD0 = 0x307,
  WdfDevStatePowerD0NP = 0x308 | WdfDevStateNP,
  WdfDevStatePowerD0BusWakeOwner = 0x309,
  WdfDevStatePowerD0BusWakeOwnerNP = 0x30A | WdfDevStateNP,
  WdfDevStatePowerD0ArmedForWake = 0x30B,
  WdfDevStatePowerD0ArmedForWakeNP = 0x30C | WdfDevStateNP,
  WdfDevStatePowerD0DisarmingWakeAtBus = 0x30D,
  WdfDevStatePowerD0DisarmingWakeAtBusNP = 0x30E | WdfDevStateNP,
  WdfDevStatePowerD0Starting = 0x30F,
  WdfDevStatePowerD0StartingConnectInterrupt = 0x310,
  WdfDevStatePowerD0StartingDmaEnable = 0x311,
  WdfDevStatePowerD0StartingStartSelfManagedIo = 0x312,
  WdfDevStatePowerDecideD0State = 0x313,
  WdfDevStatePowerGotoD3Stopped = 0x314,
  WdfDevStatePowerStopped = 0x315,
  WdfDevStatePowerStartingCheckDeviceType = 0x316,
  WdfDevStatePowerStartingChild = 0x317,
  WdfDevStatePowerDxDisablingWakeAtBus = 0x318,
  WdfDevStatePowerDxDisablingWakeAtBusNP = 0x319 | WdfDevStateNP,
  WdfDevStatePowerGotoDx = 0x31A,
  WdfDevStatePowerGotoDxNP = 0x31B | WdfDevStateNP,
  WdfDevStatePowerGotoDxIoStopped = 0x31C,
  WdfDevStatePowerGotoDxIoStoppedNP = 0x31D | WdfDevStateNP,
  WdfDevStatePowerGotoDxNPFailed = 0x31E | WdfDevStateNP,
  WdfDevStatePowerDx = 0x31F,
  WdfDevStatePowerDxNP = 0x320 | WdfDevStateNP,
  WdfDevStatePowerGotoDxArmedForWake = 0x321,
  WdfDevStatePowerGotoDxArmedForWakeNP = 0x322 | WdfDevStateNP,
  WdfDevStatePowerGotoDxIoStoppedArmedForWake = 0x323,
  WdfDevStatePowerGotoDxIoStoppedArmedForWakeNP = 0x324 | WdfDevStateNP,
  WdfDevStatePowerDxArmedForWake = 0x325,
  WdfDevStatePowerDxArmedForWakeNP = 0x326 | WdfDevStateNP,
  WdfDevStatePowerCheckParentStateArmedForWake = 0x327,
  WdfDevStatePowerCheckParentStateArmedForWakeNP = 0x328 | WdfDevStateNP,
  WdfDevStatePowerWaitForParentArmedForWake = 0x329,
  WdfDevStatePowerWaitForParentArmedForWakeNP = 0x32A | WdfDevStateNP,
  WdfDevStatePowerStartSelfManagedIo = 0x32B,
  WdfDevStatePowerStartSelfManagedIoNP = 0x32C | WdfDevStateNP,
  WdfDevStatePowerStartSelfManagedIoFailed = 0x32D,
  WdfDevStatePowerStartSelfManagedIoFailedNP = 0x32E | WdfDevStateNP,
  WdfDevStatePowerWaitForParent = 0x32F,
  WdfDevStatePowerWaitForParentNP = 0x330 | WdfDevStateNP,
  WdfDevStatePowerWakePending = 0x331,
  WdfDevStatePowerWakePendingNP = 0x332 | WdfDevStateNP,
  WdfDevStatePowerWaking = 0x333,
  WdfDevStatePowerWakingNP = 0x334 | WdfDevStateNP,
  WdfDevStatePowerWakingConnectInterrupt = 0x335,
  WdfDevStatePowerWakingConnectInterruptNP = 0x336 | WdfDevStateNP,
  WdfDevStatePowerWakingConnectInterruptFailed = 0x337,
  WdfDevStatePowerWakingConnectInterruptFailedNP = 0x338 | WdfDevStateNP,
  WdfDevStatePowerWakingDmaEnable = 0x339,
  WdfDevStatePowerWakingDmaEnableNP = 0x33A | WdfDevStateNP,
  WdfDevStatePowerWakingDmaEnableFailed = 0x33B,
  WdfDevStatePowerWakingDmaEnableFailedNP = 0x33C | WdfDevStateNP,
  WdfDevStatePowerReportPowerUpFailedDerefParent = 0x33D,
  WdfDevStatePowerReportPowerUpFailed = 0x33E,
  WdfDevStatePowerPowerFailedPowerDown = 0x33F,
  WdfDevStatePowerReportPowerDownFailed = 0x340,
  WdfDevStatePowerInitialConnectInterruptFailed = 0x341,
  WdfDevStatePowerInitialDmaEnableFailed = 0x342,
  WdfDevStatePowerInitialSelfManagedIoFailed = 0x343,
  WdfDevStatePowerInitialPowerUpFailedDerefParent = 0x344,
  WdfDevStatePowerInitialPowerUpFailed = 0x345,
  WdfDevStatePowerDxStoppedDisarmWake = 0x346,
  WdfDevStatePowerDxStoppedDisarmWakeNP = 0x347 | WdfDevStateNP,
  WdfDevStatePowerGotoDxStoppedDisableInterruptNP = 0x348 | WdfDevStateNP,
  WdfDevStatePowerGotoDxStopped = 0x349,
  WdfDevStatePowerDxStopped = 0x34A,
  WdfDevStatePowerGotoStopped = 0x34B,
  WdfDevStatePowerStoppedCompleteDx = 0x34C,
  WdfDevStatePowerDxStoppedDecideDxState = 0x34D,
  WdfDevStatePowerDxStoppedArmForWake = 0x34E,
  WdfDevStatePowerDxStoppedArmForWakeNP = 0x34F | WdfDevStateNP,
  WdfDevStatePowerFinalPowerDownFailed = 0x350,
  WdfDevStatePowerFinal = 0x351,
  WdfDevStatePowerGotoImplicitD3DisarmWakeAtBus = 0x352,
  WdfDevStatePowerUpFailed = 0x353,
  WdfDevStatePowerUpFailedDerefParent = 0x354,
  WdfDevStatePowerGotoDxFailed = 0x355,
  WdfDevStatePowerGotoDxStoppedDisableInterrupt = 0x356,
  WdfDevStatePowerUpFailedNP = 0x357 | WdfDevStateNP,
  WdfDevStatePowerUpFailedDerefParentNP = 0x358 | WdfDevStateNP,
  WdfDevStatePowerNotifyingD0ExitToWakeInterrupts = 0x359,
  WdfDevStatePowerNotifyingD0EntryToWakeInterrupts = 0x35A,
  WdfDevStatePowerNotifyingD0ExitToWakeInterruptsNP = 0x35B | WdfDevStateNP,
  WdfDevStatePowerNotifyingD0EntryToWakeInterruptsNP = 0x35C | WdfDevStateNP,
  WdfDevStatePowerInitialPowerUpFailedPowerDown = 0x35D,
  WdfDevStatePowerUpFailedPowerDown = 0x35E,
  WdfDevStatePowerUpFailedPowerDownNP = 0x35F | WdfDevStateNP,
  WdfDevStatePowerInitialSelfManagedIoFailedStarted = 0x360,
  WdfDevStatePowerStartSelfManagedIoFailedStarted = 0x361,
  WdfDevStatePowerStartSelfManagedIoFailedStartedNP = 0x362 | WdfDevStateNP,
  WdfDevStatePowerWakingPostHardwareEnabled = 0x363,
  WdfDevStatePowerWakingPostHardwareEnabledNP = 0x364 | WdfDevStateNP,
  WdfDevStatePowerWakingPostHardwareEnabledFailed = 0x365,
  WdfDevStatePowerWakingPostHardwareEnabledFailedNP = 0x366 | WdfDevStateNP,
  WdfDevStatePowerD0StartingPostHardwareEnabled = 0x367,
  WdfDevStatePowerInitialPostHardwareEnabledFailed = 0x368,
  WdfDevStatePowerNull = 0x369
} WDF_DEVICE_POWER_STATE, *PWDF_DEVICE_POWER_STATE;

Constants

 
WdfDevStatePowerInvalid
Value: 0x00
WdfDevStatePowerObjectCreated
Value: 0x300
WdfDevStatePowerCheckDeviceType
Value: 0x301
WdfDevStatePowerCheckDeviceTypeNP
Value: 0x302
WdfDevStatePowerCheckParentState
Value: 0x303
WdfDevStatePowerCheckParentStateNP
Value: 0x304
WdfDevStatePowerEnablingWakeAtBus
Value: 0x305
WdfDevStatePowerEnablingWakeAtBusNP
Value: 0x306
WdfDevStatePowerD0
Value: 0x307
WdfDevStatePowerD0NP
Value: 0x308
WdfDevStatePowerD0BusWakeOwner
Value: 0x309
WdfDevStatePowerD0BusWakeOwnerNP
Value: 0x30A
WdfDevStatePowerD0ArmedForWake
Value: 0x30B
WdfDevStatePowerD0ArmedForWakeNP
Value: 0x30C
WdfDevStatePowerD0DisarmingWakeAtBus
Value: 0x30D
WdfDevStatePowerD0DisarmingWakeAtBusNP
Value: 0x30E
WdfDevStatePowerD0Starting
Value: 0x30F
WdfDevStatePowerD0StartingConnectInterrupt
Value: 0x310
WdfDevStatePowerD0StartingDmaEnable
Value: 0x311
WdfDevStatePowerD0StartingStartSelfManagedIo
Value: 0x312
WdfDevStatePowerDecideD0State
Value: 0x313
WdfDevStatePowerGotoD3Stopped
Value: 0x314
WdfDevStatePowerStopped
Value: 0x315
WdfDevStatePowerStartingCheckDeviceType
Value: 0x316
WdfDevStatePowerStartingChild
Value: 0x317
WdfDevStatePowerDxDisablingWakeAtBus
Value: 0x318
WdfDevStatePowerDxDisablingWakeAtBusNP
Value: 0x319
WdfDevStatePowerGotoDx
Value: 0x31A
WdfDevStatePowerGotoDxNP
Value: 0x31B
WdfDevStatePowerGotoDxIoStopped
Value: 0x31C
WdfDevStatePowerGotoDxIoStoppedNP
Value: 0x31D
WdfDevStatePowerGotoDxNPFailed
Value: 0x31E
WdfDevStatePowerDx
Value: 0x31F
WdfDevStatePowerDxNP
Value: 0x320
WdfDevStatePowerGotoDxArmedForWake
Value: 0x321
WdfDevStatePowerGotoDxArmedForWakeNP
Value: 0x322
WdfDevStatePowerGotoDxIoStoppedArmedForWake
Value: 0x323
WdfDevStatePowerGotoDxIoStoppedArmedForWakeNP
Value: 0x324
WdfDevStatePowerDxArmedForWake
Value: 0x325
WdfDevStatePowerDxArmedForWakeNP
Value: 0x326
WdfDevStatePowerCheckParentStateArmedForWake
Value: 0x327
WdfDevStatePowerCheckParentStateArmedForWakeNP
Value: 0x328
WdfDevStatePowerWaitForParentArmedForWake
Value: 0x329
WdfDevStatePowerWaitForParentArmedForWakeNP
Value: 0x32A
WdfDevStatePowerStartSelfManagedIo
Value: 0x32B
WdfDevStatePowerStartSelfManagedIoNP
Value: 0x32C
WdfDevStatePowerStartSelfManagedIoFailed
Value: 0x32D
WdfDevStatePowerStartSelfManagedIoFailedNP
Value: 0x32E
WdfDevStatePowerWaitForParent
Value: 0x32F
WdfDevStatePowerWaitForParentNP
Value: 0x330
WdfDevStatePowerWakePending
Value: 0x331
WdfDevStatePowerWakePendingNP
Value: 0x332
WdfDevStatePowerWaking
Value: 0x333
WdfDevStatePowerWakingNP
Value: 0x334
WdfDevStatePowerWakingConnectInterrupt
Value: 0x335
WdfDevStatePowerWakingConnectInterruptNP
Value: 0x336
WdfDevStatePowerWakingConnectInterruptFailed
Value: 0x337
WdfDevStatePowerWakingConnectInterruptFailedNP
Value: 0x338
WdfDevStatePowerWakingDmaEnable
Value: 0x339
WdfDevStatePowerWakingDmaEnableNP
Value: 0x33A
WdfDevStatePowerWakingDmaEnableFailed
Value: 0x33B
WdfDevStatePowerWakingDmaEnableFailedNP
Value: 0x33C
WdfDevStatePowerReportPowerUpFailedDerefParent
Value: 0x33D
WdfDevStatePowerReportPowerUpFailed
Value: 0x33E
WdfDevStatePowerPowerFailedPowerDown
Value: 0x33F
WdfDevStatePowerReportPowerDownFailed
Value: 0x340
WdfDevStatePowerInitialConnectInterruptFailed
Value: 0x341
WdfDevStatePowerInitialDmaEnableFailed
Value: 0x342
WdfDevStatePowerInitialSelfManagedIoFailed
Value: 0x343
WdfDevStatePowerInitialPowerUpFailedDerefParent
Value: 0x344
WdfDevStatePowerInitialPowerUpFailed
Value: 0x345
WdfDevStatePowerDxStoppedDisarmWake
Value: 0x346
WdfDevStatePowerDxStoppedDisarmWakeNP
Value: 0x347
WdfDevStatePowerGotoDxStoppedDisableInterruptNP
Value: 0x348
WdfDevStatePowerGotoDxStopped
Value: 0x349
WdfDevStatePowerDxStopped
Value: 0x34A
WdfDevStatePowerGotoStopped
Value: 0x34B
WdfDevStatePowerStoppedCompleteDx
Value: 0x34C
WdfDevStatePowerDxStoppedDecideDxState
Value: 0x34D
WdfDevStatePowerDxStoppedArmForWake
Value: 0x34E
WdfDevStatePowerDxStoppedArmForWakeNP
Value: 0x34F
WdfDevStatePowerFinalPowerDownFailed
Value: 0x350
WdfDevStatePowerFinal
Value: 0x351
WdfDevStatePowerGotoImplicitD3DisarmWakeAtBus
Value: 0x352
WdfDevStatePowerUpFailed
Value: 0x353
WdfDevStatePowerUpFailedDerefParent
Value: 0x354
WdfDevStatePowerGotoDxFailed
Value: 0x355
WdfDevStatePowerGotoDxStoppedDisableInterrupt
Value: 0x356
WdfDevStatePowerUpFailedNP
Value: 0x357
WdfDevStatePowerUpFailedDerefParentNP
Value: 0x358
WdfDevStatePowerNotifyingD0ExitToWakeInterrupts
Value: 0x359
WdfDevStatePowerNotifyingD0EntryToWakeInterrupts
Value: 0x35A
WdfDevStatePowerNotifyingD0ExitToWakeInterruptsNP
Value: 0x35B
WdfDevStatePowerNotifyingD0EntryToWakeInterruptsNP
Value: 0x35C
WdfDevStatePowerInitialPowerUpFailedPowerDown
Value: 0x35D
WdfDevStatePowerUpFailedPowerDown
Value: 0x35E
WdfDevStatePowerUpFailedPowerDownNP
Value: 0x35F
WdfDevStatePowerInitialSelfManagedIoFailedStarted
Value: 0x360
WdfDevStatePowerStartSelfManagedIoFailedStarted
Value: 0x361
WdfDevStatePowerStartSelfManagedIoFailedStartedNP
Value: 0x362
WdfDevStatePowerWakingPostHardwareEnabled
Value: 0x363
WdfDevStatePowerWakingPostHardwareEnabledNP
Value: 0x364
WdfDevStatePowerWakingPostHardwareEnabledFailed
Value: 0x365
WdfDevStatePowerWakingPostHardwareEnabledFailedNP
Value: 0x366
WdfDevStatePowerD0StartingPostHardwareEnabled
Value: 0x367
WdfDevStatePowerInitialPostHardwareEnabledFailed
Value: 0x368
WdfDevStatePowerNull
Value: 0x369

Remarks

The WDF_DEVICE_POWER_STATE enumeration is used as a member type in the WDF_DEVICE_POWER_NOTIFICATION_DATA structure and as the return type for the WdfDeviceGetDevicePowerState method.

Requirements

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