Condividi tramite


enumerazione WDF_DEVICE_POWER_STATE (wdfdevice.h)

[Si applica solo a KMDF]

Nota

Questa enumerazione è destinata solo all'uso interno di Microsoft.

L'enumerazione WDF_DEVICE_POWER_STATE identifica tutti gli stati che la macchina a stati di alimentazione del framework può immettere.

Sintassi

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;

Costanti

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

Commenti

L'enumerazione WDF_DEVICE_POWER_STATE viene usata come tipo membro nella struttura WDF_DEVICE_POWER_NOTIFICATION_DATA e come tipo restituito per il metodo WdfDeviceGetDevicePowerState .

Requisiti

Requisito Valore
Versione KMDF minima 1.0
Intestazione wdfdevice.h (includere Wdf.h)