WDF_DEVICE_PNP_STATE 枚举 (wdfdevice.h)
[仅适用于 KMDF]
注意
此枚举仅供 Microsoft 内部使用。
WDF_DEVICE_PNP_STATE枚举标识框架即插即用状态机可以进入的所有状态。
语法
typedef enum _WDF_DEVICE_PNP_STATE {
WdfDevStatePnpInvalid = 0x00,
WdfDevStatePnpObjectCreated = 0x100,
WdfDevStatePnpCheckForDevicePresence = 0x101,
WdfDevStatePnpEjectFailed = 0x102,
WdfDevStatePnpEjectHardware = 0x103,
WdfDevStatePnpEjectedWaitingForRemove = 0x104,
WdfDevStatePnpInit = 0x105,
WdfDevStatePnpInitStarting = 0x106,
WdfDevStatePnpInitSurpriseRemoved = 0x107,
WdfDevStatePnpHardwareAvailable = 0x108,
WdfDevStatePnpEnableInterfaces = 0x109,
WdfDevStatePnpHardwareAvailablePowerPolicyFailed = 0x10A,
WdfDevStatePnpQueryRemoveAskDriver = 0x10B,
WdfDevStatePnpQueryRemovePending = 0x10C,
WdfDevStatePnpQueryRemoveStaticCheck = 0x10D,
WdfDevStatePnpQueriedRemoving = 0x10E,
WdfDevStatePnpQueryStopAskDriver = 0x10F,
WdfDevStatePnpQueryStopPending = 0x110,
WdfDevStatePnpQueryStopStaticCheck = 0x111,
WdfDevStatePnpQueryCanceled = 0x112,
WdfDevStatePnpRemoved = 0x113,
WdfDevStatePnpPdoRemoved = 0x114,
WdfDevStatePnpRemovedPdoWait = 0x115,
WdfDevStatePnpRemovedPdoSurpriseRemoved = 0x116,
WdfDevStatePnpRemovingDisableInterfaces = 0x117,
WdfDevStatePnpRestarting = 0x118,
WdfDevStatePnpStarted = 0x119,
WdfDevStatePnpStartedCancelStop = 0x11A,
WdfDevStatePnpStartedCancelRemove = 0x11B,
WdfDevStatePnpStartedRemoving = 0x11C,
WdfDevStatePnpStartingFromStopped = 0x11D,
WdfDevStatePnpStopped = 0x11E,
WdfDevStatePnpStoppedWaitForStartCompletion = 0x11F,
WdfDevStatePnpStartedStopping = 0x120,
WdfDevStatePnpSurpriseRemove = 0x121,
WdfDevStatePnpInitQueryRemove = 0x122,
WdfDevStatePnpInitQueryRemoveCanceled = 0x123,
WdfDevStatePnpFdoRemoved = 0x124,
WdfDevStatePnpRemovedWaitForChildren = 0x125,
WdfDevStatePnpQueriedSurpriseRemove = 0x126,
WdfDevStatePnpSurpriseRemoveIoStarted = 0x127,
WdfDevStatePnpFailedPowerDown = 0x128,
WdfDevStatePnpFailedIoStarting = 0x129,
WdfDevStatePnpFailedOwnHardware = 0x12A,
WdfDevStatePnpFailed = 0x12B,
WdfDevStatePnpFailedSurpriseRemoved = 0x12C,
WdfDevStatePnpFailedStarted = 0x12D,
WdfDevStatePnpFailedWaitForRemove = 0x12E,
WdfDevStatePnpFailedInit = 0x12F,
WdfDevStatePnpPdoInitFailed = 0x130,
WdfDevStatePnpRestart = 0x131,
WdfDevStatePnpRestartReleaseHardware = 0x132,
WdfDevStatePnpRestartHardwareAvailable = 0x133,
WdfDevStatePnpPdoRestart = 0x134,
WdfDevStatePnpFinal = 0x135,
WdfDevStatePnpRemovedChildrenRemoved = 0x136,
WdfDevStatePnpQueryRemoveEnsureDeviceAwake = 0x137,
WdfDevStatePnpQueryStopEnsureDeviceAwake = 0x138,
WdfDevStatePnpFailedPowerPolicyRemoved = 0x139,
WdfDevStatePnpNull = 0x13A
} WDF_DEVICE_PNP_STATE, *PWDF_DEVICE_PNP_STATE;
常量
WdfDevStatePnpInvalid 值: 0x00 |
WdfDevStatePnpObjectCreated 值: 0x100 |
WdfDevStatePnpCheckForDevicePresence 值: 0x101 |
WdfDevStatePnpEjectFailed 值: 0x102 |
WdfDevStatePnpEjectHardware 值: 0x103 |
WdfDevStatePnpEjectedWaitingForRemove 值: 0x104 |
WdfDevStatePnpInit 值: 0x105 |
WdfDevStatePnpInitStarting 值: 0x106 |
WdfDevStatePnpInitSurpriseRemoved 值: 0x107 |
WdfDevStatePnpHardwareAvailable 值: 0x108 |
WdfDevStatePnpEnableInterfaces 值: 0x109 |
WdfDevStatePnpHardwareAvailablePowerPolicyFailed 值: 0x10A |
WdfDevStatePnpQueryRemoveAskDriver 值: 0x10B |
WdfDevStatePnpQueryRemovePending 值: 0x10C |
WdfDevStatePnpQueryRemoveStaticCheck 值: 0x10D |
WdfDevStatePnpQueriedRemoving 值: 0x10E |
WdfDevStatePnpQueryStopAskDriver 值: 0x10F |
WdfDevStatePnpQueryStopPending 值: 0x110 |
WdfDevStatePnpQueryStopStaticCheck 值: 0x111 |
WdfDevStatePnpQueryCanceled 值: 0x112 |
WdfDevStatePnpRemoved 值: 0x113 |
WdfDevStatePnpPdoRemoved 值: 0x114 |
WdfDevStatePnpRemovedPdoWait 值: 0x115 |
WdfDevStatePnpRemovedPdoSurpriseRemoved 值: 0x116 |
WdfDevStatePnpRemovingDisableInterfaces 值: 0x117 |
WdfDevStatePnpRestarting 值: 0x118 |
WdfDevStatePnpStarted 值: 0x119 |
WdfDevStatePnpStartedCancelStop 值: 0x11A |
WdfDevStatePnpStartedCancelRemove 值: 0x11B |
WdfDevStatePnpStartedRemoving 值: 0x11C |
WdfDevStatePnpStartingFromStopped 值: 0x11D |
WdfDevStatePnpStopped 值: 0x11E |
WdfDevStatePnpStoppedWaitForStartCompletion 值: 0x11F |
WdfDevStatePnpStartedStopping 值: 0x120 |
WdfDevStatePnpSurpriseRemove 值: 0x121 |
WdfDevStatePnpInitQueryRemove 值: 0x122 |
WdfDevStatePnpInitQueryRemoveCanceled 值: 0x123 |
WdfDevStatePnpFdoRemoved 值: 0x124 |
WdfDevStatePnpRemovedWaitForChildren 值: 0x125 |
WdfDevStatePnpQueriedSurpriseRemove 值: 0x126 |
WdfDevStatePnpSurpriseRemoveIoStarted 值: 0x127 |
WdfDevStatePnpFailedPowerDown 值: 0x128 |
WdfDevStatePnpFailedIoStarting 值: 0x129 |
WdfDevStatePnpFailedOwnHardware 值: 0x12A |
WdfDevStatePnpFailed 值: 0x12B |
WdfDevStatePnpFailedSurpriseRemoved 值: 0x12C |
WdfDevStatePnpFailedStarted 值: 0x12D |
WdfDevStatePnpFailedWaitForRemove 值: 0x12E |
WdfDevStatePnpFailedInit 值: 0x12F |
WdfDevStatePnpPdoInitFailed 值: 0x130 |
WdfDevStatePnpRestart 值: 0x131 |
WdfDevStatePnpRestartReleaseHardware 值: 0x132 |
WdfDevStatePnpRestartHardwareAvailable 值: 0x133 |
WdfDevStatePnpPdoRestart 值: 0x134 |
WdfDevStatePnpFinal 值: 0x135 |
WdfDevStatePnpRemovedChildrenRemoved 值: 0x136 |
WdfDevStatePnpQueryRemoveEnsureDeviceAwake 值: 0x137 |
WdfDevStatePnpQueryStopEnsureDeviceAwake 值: 0x138 |
WdfDevStatePnpFailedPowerPolicyRemoved 值: 0x139 |
WdfDevStatePnpNull 值: 0x13A |
注解
WDF_DEVICE_PNP_STATE 枚举用作 WDF_DEVICE_PNP_NOTIFICATION_DATA 结构的成员类型,并用作 WdfDeviceGetDevicePnpState 方法的返回类型。
要求
要求 | 值 |
---|---|
最低 KMDF 版本 | 1.0 |
标头 | wdfdevice.h (包括 Wdf.h) |