Skip to content

Latest commit

 

History

History
94 lines (66 loc) · 2.89 KB

nf-wdfdevice-wdfdevicegetdevicepnpstate.md

File metadata and controls

94 lines (66 loc) · 2.89 KB
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
WdfDeviceGetDevicePnpState function
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
WdfDeviceGetDevicePnpState
wdfdevice/WdfDeviceGetDevicePnpState
APIRef
kbSyntax
LibDef
Wdf01000.sys
Wdf01000.sys.dll
WdfDeviceGetDevicePnpState

WdfDeviceGetDevicePnpState function

-description

[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.

-parameters

-param Device [in]

A handle to a framework device object.

-returns

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.

-remarks

For more information about the framework's state machines, see State Machines in the Framework.

Examples

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);

-see-also

WdfDevStateNormalize

WdfDeviceGetDevicePowerPolicyState

WdfDeviceGetDevicePowerState