WdfDeviceGetDeviceState - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

VOID WdfDeviceGetDeviceState(
  [in]      WDFDEVICE         Device,
  [in, out] PWDF_DEVICE_STATE DeviceState
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdevicegetdevicestate)

WdfDeviceGetDeviceState function

Description

[Applies to KMDF and UMDF]

The WdfDeviceGetDeviceState method retrieves the device state for a specified device.

Parameters

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.

Remarks

A bug check occurs if the driver supplies an invalid object handle.

See also

WDF_DEVICE_STATE_INIT