WDF_DEVICE_PNP_STATE enumeration (wdfdevice.h)
[Applies to KMDF only]
Note
This enumeration is for Microsoft internal use only.
The WDF_DEVICE_PNP_STATE enumeration identifies all of the states that the framework's Plug and Play state machine can enter.
Syntax
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;
Constants
WdfDevStatePnpInvalid Value: 0x00 |
WdfDevStatePnpObjectCreated Value: 0x100 |
WdfDevStatePnpCheckForDevicePresence Value: 0x101 |
WdfDevStatePnpEjectFailed Value: 0x102 |
WdfDevStatePnpEjectHardware Value: 0x103 |
WdfDevStatePnpEjectedWaitingForRemove Value: 0x104 |
WdfDevStatePnpInit Value: 0x105 |
WdfDevStatePnpInitStarting Value: 0x106 |
WdfDevStatePnpInitSurpriseRemoved Value: 0x107 |
WdfDevStatePnpHardwareAvailable Value: 0x108 |
WdfDevStatePnpEnableInterfaces Value: 0x109 |
WdfDevStatePnpHardwareAvailablePowerPolicyFailed Value: 0x10A |
WdfDevStatePnpQueryRemoveAskDriver Value: 0x10B |
WdfDevStatePnpQueryRemovePending Value: 0x10C |
WdfDevStatePnpQueryRemoveStaticCheck Value: 0x10D |
WdfDevStatePnpQueriedRemoving Value: 0x10E |
WdfDevStatePnpQueryStopAskDriver Value: 0x10F |
WdfDevStatePnpQueryStopPending Value: 0x110 |
WdfDevStatePnpQueryStopStaticCheck Value: 0x111 |
WdfDevStatePnpQueryCanceled Value: 0x112 |
WdfDevStatePnpRemoved Value: 0x113 |
WdfDevStatePnpPdoRemoved Value: 0x114 |
WdfDevStatePnpRemovedPdoWait Value: 0x115 |
WdfDevStatePnpRemovedPdoSurpriseRemoved Value: 0x116 |
WdfDevStatePnpRemovingDisableInterfaces Value: 0x117 |
WdfDevStatePnpRestarting Value: 0x118 |
WdfDevStatePnpStarted Value: 0x119 |
WdfDevStatePnpStartedCancelStop Value: 0x11A |
WdfDevStatePnpStartedCancelRemove Value: 0x11B |
WdfDevStatePnpStartedRemoving Value: 0x11C |
WdfDevStatePnpStartingFromStopped Value: 0x11D |
WdfDevStatePnpStopped Value: 0x11E |
WdfDevStatePnpStoppedWaitForStartCompletion Value: 0x11F |
WdfDevStatePnpStartedStopping Value: 0x120 |
WdfDevStatePnpSurpriseRemove Value: 0x121 |
WdfDevStatePnpInitQueryRemove Value: 0x122 |
WdfDevStatePnpInitQueryRemoveCanceled Value: 0x123 |
WdfDevStatePnpFdoRemoved Value: 0x124 |
WdfDevStatePnpRemovedWaitForChildren Value: 0x125 |
WdfDevStatePnpQueriedSurpriseRemove Value: 0x126 |
WdfDevStatePnpSurpriseRemoveIoStarted Value: 0x127 |
WdfDevStatePnpFailedPowerDown Value: 0x128 |
WdfDevStatePnpFailedIoStarting Value: 0x129 |
WdfDevStatePnpFailedOwnHardware Value: 0x12A |
WdfDevStatePnpFailed Value: 0x12B |
WdfDevStatePnpFailedSurpriseRemoved Value: 0x12C |
WdfDevStatePnpFailedStarted Value: 0x12D |
WdfDevStatePnpFailedWaitForRemove Value: 0x12E |
WdfDevStatePnpFailedInit Value: 0x12F |
WdfDevStatePnpPdoInitFailed Value: 0x130 |
WdfDevStatePnpRestart Value: 0x131 |
WdfDevStatePnpRestartReleaseHardware Value: 0x132 |
WdfDevStatePnpRestartHardwareAvailable Value: 0x133 |
WdfDevStatePnpPdoRestart Value: 0x134 |
WdfDevStatePnpFinal Value: 0x135 |
WdfDevStatePnpRemovedChildrenRemoved Value: 0x136 |
WdfDevStatePnpQueryRemoveEnsureDeviceAwake Value: 0x137 |
WdfDevStatePnpQueryStopEnsureDeviceAwake Value: 0x138 |
WdfDevStatePnpFailedPowerPolicyRemoved Value: 0x139 |
WdfDevStatePnpNull Value: 0x13A |
Remarks
The WDF_DEVICE_PNP_STATE enumeration is used as a member type for the WDF_DEVICE_PNP_NOTIFICATION_DATA structure and as the return type for the WdfDeviceGetDevicePnpState method.
Requirements
Requirement | Value |
---|---|
Minimum KMDF version | 1.0 |
Header | wdfdevice.h (include Wdf.h) |