WDF_DEVICE_POWER_STATE 枚举 (wdfdevice.h)
[仅适用于 KMDF]
注意
此枚举仅供 Microsoft 内部使用。
WDF_DEVICE_POWER_STATE枚举标识框架的电源状态机可以进入的所有状态。
语法
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;
常量
WdfDevStatePowerInvalid 值: 0x00 |
WdfDevStatePowerObjectCreated 值: 0x300 |
WdfDevStatePowerCheckDeviceType 值: 0x301 |
WdfDevStatePowerCheckDeviceTypeNP 值: 0x302 |
WdfDevStatePowerCheckParentState 值: 0x303 |
WdfDevStatePowerCheckParentStateNP 值: 0x304 |
WdfDevStatePowerEnablingWakeAtBus 值: 0x305 |
WdfDevStatePowerEnablingWakeAtBusNP 值: 0x306 |
WdfDevStatePowerD0 值: 0x307 |
WdfDevStatePowerD0NP 值: 0x308 |
WdfDevStatePowerD0BusWakeOwner 值: 0x309 |
WdfDevStatePowerD0BusWakeOwnerNP 值: 0x30A |
WdfDevStatePowerD0ArmedForWake 值: 0x30B |
WdfDevStatePowerD0ArmedForWakeNP 值: 0x30C |
WdfDevStatePowerD0DisarmingWakeAtBus 值: 0x30D |
WdfDevStatePowerD0DisarmingWakeAtBusNP 值: 0x30E |
WdfDevStatePowerD0Starting 值: 0x30F |
WdfDevStatePowerD0StartingConnectInterrupt 值: 0x310 |
WdfDevStatePowerD0StartingDmaEnable 值: 0x311 |
WdfDevStatePowerD0StartingStartSelfManagedIo 值: 0x312 |
WdfDevStatePowerDecideD0State 值: 0x313 |
WdfDevStatePowerGotoD3Stopped 值: 0x314 |
WdfDevStatePowerStopped 值: 0x315 |
WdfDevStatePowerStartingCheckDeviceType 值: 0x316 |
WdfDevStatePowerStartingChild 值: 0x317 |
WdfDevStatePowerDxDisablingWakeAtBus 值: 0x318 |
WdfDevStatePowerDxDisablingWakeAtBusNP 值: 0x319 |
WdfDevStatePowerGotoDx 值: 0x31A |
WdfDevStatePowerGotoDxNP 值: 0x31B |
WdfDevStatePowerGotoDxIoStopped 值: 0x31C |
WdfDevStatePowerGotoDxIoStoppedNP 值: 0x31D |
WdfDevStatePowerGotoDxNPFailed 值: 0x31E |
WdfDevStatePowerDx 值: 0x31F |
WdfDevStatePowerDxNP 值: 0x320 |
WdfDevStatePowerGotoDxArmedForWake 值: 0x321 |
WdfDevStatePowerGotoDxArmedForWakeNP 值: 0x322 |
WdfDevStatePowerGotoDxIoStoppedArmedForWake 值: 0x323 |
WdfDevStatePowerGotoDxIoStoppedArmedForWakeNP 值: 0x324 |
WdfDevStatePowerDxArmedForWake 值: 0x325 |
WdfDevStatePowerDxArmedForWakeNP 值: 0x326 |
WdfDevStatePowerCheckParentStateArmedForWake 值: 0x327 |
WdfDevStatePowerCheckParentStateArmedForWakeNP 值: 0x328 |
WdfDevStatePowerWaitForParentArmedForWake 值: 0x329 |
WdfDevStatePowerWaitForParentArmedForWakeNP 值: 0x32A |
WdfDevStatePowerStartSelfManagedIo 值: 0x32B |
WdfDevStatePowerStartSelfManagedIoNP 值: 0x32C |
WdfDevStatePowerStartSelfManagedIoFailed 值: 0x32D |
WdfDevStatePowerStartSelfManagedIoFailedNP 值: 0x32E |
WdfDevStatePowerWaitForParent 值: 0x32F |
WdfDevStatePowerWaitForParentNP 值: 0x330 |
WdfDevStatePowerWakePending 值: 0x331 |
WdfDevStatePowerWakePendingNP 值: 0x332 |
WdfDevStatePowerWaking 值: 0x333 |
WdfDevStatePowerWakingNP 值: 0x334 |
WdfDevStatePowerWakingConnectInterrupt 值: 0x335 |
WdfDevStatePowerWakingConnectInterruptNP 值: 0x336 |
WdfDevStatePowerWakingConnectInterruptFailed 值: 0x337 |
WdfDevStatePowerWakingConnectInterruptFailedNP 值: 0x338 |
WdfDevStatePowerWakingDmaEnable 值: 0x339 |
WdfDevStatePowerWakingDmaEnableNP 值: 0x33A |
WdfDevStatePowerWakingDmaEnableFailed 值: 0x33B |
WdfDevStatePowerWakingDmaEnableFailedNP 值: 0x33C |
WdfDevStatePowerReportPowerUpFailedDerefParent 值: 0x33D |
WdfDevStatePowerReportPowerUpFailed 值: 0x33E |
WdfDevStatePowerPowerFailedPowerDown 值: 0x33F |
WdfDevStatePowerReportPowerDownFailed 值: 0x340 |
WdfDevStatePowerInitialConnectInterruptFailed 值: 0x341 |
WdfDevStatePowerInitialDmaEnableFailed 值: 0x342 |
WdfDevStatePowerInitialSelfManagedIoFailed 值: 0x343 |
WdfDevStatePowerInitialPowerUpFailedDerefParent 值: 0x344 |
WdfDevStatePowerInitialPowerUpFailed 值: 0x345 |
WdfDevStatePowerDxStoppedDisarmWake 值: 0x346 |
WdfDevStatePowerDxStoppedDisarmWakeNP 值: 0x347 |
WdfDevStatePowerGotoDxStoppedDisableInterruptNP 值: 0x348 |
WdfDevStatePowerGotoDxStopped 值: 0x349 |
WdfDevStatePowerDxStopped 值: 0x34A |
WdfDevStatePowerGotoStopped 值: 0x34B |
WdfDevStatePowerStoppedCompleteDx 值: 0x34C |
WdfDevStatePowerDxStoppedDecideDxState 值: 0x34D |
WdfDevStatePowerDxStoppedArmForWake 值: 0x34E |
WdfDevStatePowerDxStoppedArmForWakeNP 值: 0x34F |
WdfDevStatePowerFinalPowerDownFailed 值: 0x350 |
WdfDevStatePowerFinal 值: 0x351 |
WdfDevStatePowerGotoImplicitD3DisarmWakeAtBus 值: 0x352 |
WdfDevStatePowerUpFailed 值: 0x353 |
WdfDevStatePowerUpFailedDerefParent 值: 0x354 |
WdfDevStatePowerGotoDxFailed 值: 0x355 |
WdfDevStatePowerGotoDxStoppedDisableInterrupt 值: 0x356 |
WdfDevStatePowerUpFailedNP 值: 0x357 |
WdfDevStatePowerUpFailedDerefParentNP 值: 0x358 |
WdfDevStatePowerNotifyingD0ExitToWakeInterrupts 值: 0x359 |
WdfDevStatePowerNotifyingD0EntryToWakeInterrupts 值: 0x35A |
WdfDevStatePowerNotifyingD0ExitToWakeInterruptsNP 值: 0x35B |
WdfDevStatePowerNotifyingD0EntryToWakeInterruptsNP 值: 0x35C |
WdfDevStatePowerInitialPowerUpFailedPowerDown 值: 0x35D |
WdfDevStatePowerUpFailedPowerDown 值: 0x35E |
WdfDevStatePowerUpFailedPowerDownNP 值: 0x35F |
WdfDevStatePowerInitialSelfManagedIoFailedStarted 值: 0x360 |
WdfDevStatePowerStartSelfManagedIoFailedStarted 值: 0x361 |
WdfDevStatePowerStartSelfManagedIoFailedStartedNP 值: 0x362 |
WdfDevStatePowerWakingPostHardwareEnabled 值: 0x363 |
WdfDevStatePowerWakingPostHardwareEnabledNP 值: 0x364 |
WdfDevStatePowerWakingPostHardwareEnabledFailed 值: 0x365 |
WdfDevStatePowerWakingPostHardwareEnabledFailedNP 值: 0x366 |
WdfDevStatePowerD0StartingPostHardwareEnabled 值: 0x367 |
WdfDevStatePowerInitialPostHardwareEnabledFailed 值: 0x368 |
WdfDevStatePowerNull 值: 0x369 |
注解
WDF_DEVICE_POWER_STATE 枚举用作 WDF_DEVICE_POWER_NOTIFICATION_DATA 结构中的成员类型,并用作 WdfDeviceGetDevicePowerState 方法的返回类型。
要求
要求 | 值 |
---|---|
最低 KMDF 版本 | 1.0 |
标头 | wdfdevice.h (包括 Wdf.h) |