UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:wdfdevice.WdfDeviceGetDevicePnpState |
WdfDeviceGetDevicePnpState function (wdfdevice.h) |
The WdfDeviceGetDevicePnpState method returns the current state of the framework's Plug and Play state machine for a specified device. |
wdf\wdfdevicegetdevicepnpstate.htm |
wdf |
02/26/2018 |
|
DFDeviceObjectGeneralRef_8c17c41d-4e8e-499e-83db-92006e4fe08a.xml, WdfDeviceGetDevicePnpState, WdfDeviceGetDevicePnpState method, kmdf.wdfdevicegetdevicepnpstate, wdf.wdfdevicegetdevicepnpstate, wdfdevice/WdfDeviceGetDevicePnpState |
wdfdevice.h |
Wdf.h |
Universal |
1.0 |
DriverCreate, KmdfIrql, KmdfIrql2 |
Wdf01000.sys (see Framework Library Versioning.) |
<= DISPATCH_LEVEL |
Windows |
|
|
|
|
|
[Applies to KMDF only]
Note
This function is for Microsoft-internal use only.
The WdfDeviceGetDevicePnpState method returns the current state of the framework's Plug and Play state machine for a specified device.
A handle to a framework device object.
WdfDeviceGetDevicePnpState returns a WDF_DEVICE_PNP_STATE-typed enumerator that identifies the current state of the framework's Plug and Play state machine for the specified device.
A bug check occurs if the driver supplies an invalid object handle.
For more information about the framework's state machines, see State Machines in the Framework.
The following code example obtains the current state of the framework's Plug and Play state machine for a specified device.
WDF_DEVICE_PNP_STATE state;
state = WdfDeviceGetDevicePnpState(Device);