// wdfdevice.h
VOID WdfDeviceGetDeviceState(
[in] WDFDEVICE Device,
[in, out] PWDF_DEVICE_STATE DeviceState
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WdfDeviceGetDeviceState method retrieves the device state for a specified device.
Device [in]A handle to a framework device object.
DeviceState [in, out]A pointer to a caller-allocated WDF_DEVICE_STATE structure that receives the device's state information.
A bug check occurs if the driver supplies an invalid object handle.