énumération WDF_DEVICE_POWER_STATE (wdfdevice.h)
[S’applique uniquement à KMDF]
Notes
Cette énumération est destinée à un usage interne Microsoft uniquement.
L’énumération WDF_DEVICE_POWER_STATE identifie tous les états que la machine d’état d’alimentation du framework peut entrer.
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;
Constantes
WdfDevStatePowerInvalid Valeur : 0x00 |
WdfDevStatePowerObjectCreated Valeur : 0x300 |
WdfDevStatePowerCheckDeviceType Valeur : 0x301 |
WdfDevStatePowerCheckDeviceTypeNP Valeur : 0x302 |
WdfDevStatePowerCheckParentState Valeur : 0x303 |
WdfDevStatePowerCheckParentStateNP Valeur : 0x304 |
WdfDevStatePowerEnablingWakeAtBus Valeur : 0x305 |
WdfDevStatePowerEnablingWakeAtBusNP Valeur : 0x306 |
WdfDevStatePowerD0 Valeur : 0x307 |
WdfDevStatePowerD0NP Valeur : 0x308 |
WdfDevStatePowerD0BusWakeOwner Valeur : 0x309 |
WdfDevStatePowerD0BusWakeOwnerNP Valeur : 0x30A |
WdfDevStatePowerD0ArmedForWake Valeur : 0x30B |
WdfDevStatePowerD0ArmedForWakeNP Valeur : 0x30C |
WdfDevStatePowerD0DisarmingWakeAtBus Valeur : 0x30D |
WdfDevStatePowerD0DisarmingWakeAtBusNP Valeur : 0x30E |
WdfDevStatePowerD0Starting Valeur : 0x30F |
WdfDevStatePowerD0StartingConnectInterrupt Valeur : 0x310 |
WdfDevStatePowerD0StartingDmaEnable Valeur : 0x311 |
WdfDevStatePowerD0StartingStartSelfManagedIo Valeur : 0x312 |
WdfDevStatePowerDecideD0State Valeur : 0x313 |
WdfDevStatePowerGotoD3Stopped Valeur : 0x314 |
WdfDevStatePowerStopped Valeur : 0x315 |
WdfDevStatePowerStartingCheckDeviceType Valeur : 0x316 |
WdfDevStatePowerStartingChild Valeur : 0x317 |
WdfDevStatePowerDxDisablingWakeAtBus Valeur : 0x318 |
WdfDevStatePowerDxDisablingWakeAtBusNP Valeur : 0x319 |
WdfDevStatePowerGotoDx Valeur : 0x31A |
WdfDevStatePowerGotoDxNP Valeur : 0x31B |
WdfDevStatePowerGotoDxIoStopped Valeur : 0x31C |
WdfDevStatePowerGotoDxIoStoppedNP Valeur : 0x31D |
WdfDevStatePowerGotoDxNPFailed Valeur : 0x31E |
WdfDevStatePowerDx Valeur : 0x31F |
WdfDevStatePowerDxNP Valeur : 0x320 |
WdfDevStatePowerGotoDxArmedForWake Valeur : 0x321 |
WdfDevStatePowerGotoDxArmedForWakeNP Valeur : 0x322 |
WdfDevStatePowerGotoDxIoStoppedArmedForWake Valeur : 0x323 |
WdfDevStatePowerGotoDxIoStoppedArmedForWakeNP Valeur : 0x324 |
WdfDevStatePowerDxArmedForWake Valeur : 0x325 |
WdfDevStatePowerDxArmedForWakeNP Valeur : 0x326 |
WdfDevStatePowerCheckParentStateArmedForWake Valeur : 0x327 |
WdfDevStatePowerCheckParentStateArmedForWakeNP Valeur : 0x328 |
WdfDevStatePowerWaitForParentArmedForWake Valeur : 0x329 |
WdfDevStatePowerWaitForParentArmedForWakeNP Valeur : 0x32A |
WdfDevStatePowerStartSelfManagedIo Valeur : 0x32B |
WdfDevStatePowerStartSelfManagedIoNP Valeur : 0x32C |
WdfDevStatePowerStartSelfManagedIoFailed Valeur : 0x32D |
WdfDevStatePowerStartSelfManagedIoFailedNP Valeur : 0x32E |
WdfDevStatePowerWaitForParent Valeur : 0x32F |
WdfDevStatePowerWaitForParentNP Valeur : 0x330 |
WdfDevStatePowerWakePending Valeur : 0x331 |
WdfDevStatePowerWakePendingNP Valeur : 0x332 |
WdfDevStatePowerWaking Valeur : 0x333 |
WdfDevStatePowerWakingNP Valeur : 0x334 |
WdfDevStatePowerWakingConnectInterrupt Valeur : 0x335 |
WdfDevStatePowerWakingConnectInterruptNP Valeur : 0x336 |
WdfDevStatePowerWakingConnectInterruptFailed Valeur : 0x337 |
WdfDevStatePowerWakingConnectInterruptFailedNP Valeur : 0x338 |
WdfDevStatePowerWakingDmaEnable Valeur : 0x339 |
WdfDevStatePowerWakingDmaEnableNP Valeur : 0x33A |
WdfDevStatePowerWakingDmaEnableFailed Valeur : 0x33B |
WdfDevStatePowerWakingDmaEnableFailedNP Valeur : 0x33C |
WdfDevStatePowerReportPowerUpFailedDerefParent Valeur : 0x33D |
WdfDevStatePowerReportPowerUpFailed Valeur : 0x33E |
WdfDevStatePowerPowerFailedPowerDown Valeur : 0x33F |
WdfDevStatePowerReportPowerDownFailed Valeur : 0x340 |
WdfDevStatePowerInitialConnectInterruptFailed Valeur : 0x341 |
WdfDevStatePowerInitialDmaEnableFailed Valeur : 0x342 |
WdfDevStatePowerInitialSelfManagedIoFailed Valeur : 0x343 |
WdfDevStatePowerInitialPowerUpFailedDerefParent Valeur : 0x344 |
WdfDevStatePowerInitialPowerUpFailed Valeur : 0x345 |
WdfDevStatePowerDxStoppedDisarmWake Valeur : 0x346 |
WdfDevStatePowerDxStoppedDisarmWakeNP Valeur : 0x347 |
WdfDevStatePowerGotoDxStoppedDisableInterruptNP Valeur : 0x348 |
WdfDevStatePowerGotoDxStopped Valeur : 0x349 |
WdfDevStatePowerDxStopped Valeur : 0x34A |
WdfDevStatePowerGotoStopped Valeur : 0x34B |
WdfDevStatePowerStoppedCompleteDx Valeur : 0x34C |
WdfDevStatePowerDxStoppedDecideDxState Valeur : 0x34D |
WdfDevStatePowerDxStoppedArmForWake Valeur : 0x34E |
WdfDevStatePowerDxStoppedArmForWakeNP Valeur : 0x34F |
WdfDevStatePowerFinalPowerDownFailed Valeur : 0x350 |
WdfDevStatePowerFinal Valeur : 0x351 |
WdfDevStatePowerGotoImplicitD3DisarmWakeAtBus Valeur : 0x352 |
WdfDevStatePowerUpFailed Valeur : 0x353 |
WdfDevStatePowerUpFailedDerefParent Valeur : 0x354 |
WdfDevStatePowerGotoDxFailed Valeur : 0x355 |
WdfDevStatePowerGotoDxStoppedDisableInterrupt Valeur : 0x356 |
WdfDevStatePowerUpFailedNP Valeur : 0x357 |
WdfDevStatePowerUpFailedDerefParentNP Valeur : 0x358 |
WdfDevStatePowerNotifyingD0ExitToWakeInterrupts Valeur : 0x359 |
WdfDevStatePowerNotifyingD0EntryToWakeInterrupts Valeur : 0x35A |
WdfDevStatePowerNotifyingD0ExitToWakeInterruptsNP Valeur : 0x35B |
WdfDevStatePowerNotifyingD0EntryToWakeInterruptsNP Valeur : 0x35C |
WdfDevStatePowerInitialPowerUpFailedPowerDown Valeur : 0x35D |
WdfDevStatePowerUpFailedPowerDown Valeur : 0x35E |
WdfDevStatePowerUpFailedPowerDownNP Valeur : 0x35F |
WdfDevStatePowerInitialSelfManagedIoFailedStarted Valeur : 0x360 |
WdfDevStatePowerStartSelfManagedIoFailedStarted Valeur : 0x361 |
WdfDevStatePowerStartSelfManagedIoFailedStartedNP Valeur : 0x362 |
WdfDevStatePowerWakingPostHardwareEnabled Valeur : 0x363 |
WdfDevStatePowerWakingPostHardwareEnabledNP Valeur : 0x364 |
WdfDevStatePowerWakingPostHardwareEnabledFailed Valeur : 0x365 |
WdfDevStatePowerWakingPostHardwareEnabledFailedNP Valeur : 0x366 |
WdfDevStatePowerD0StartingPostHardwareEnabled Valeur : 0x367 |
WdfDevStatePowerInitialPostHardwareEnabledFailed Valeur : 0x368 |
WdfDevStatePowerNull Valeur : 0x369 |
Remarques
L’énumération WDF_DEVICE_POWER_STATE est utilisée comme type membre dans la structure WDF_DEVICE_POWER_NOTIFICATION_DATA et comme type de retour pour la méthode WdfDeviceGetDevicePowerState.
Configuration requise
Condition requise | Valeur |
---|---|
Version KMDF minimale | 1.0 |
En-tête | wdfdevice.h (inclure Wdf.h) |