Bewerken

Delen via


WdfDeviceGetDeviceState function (wdfdevice.h)

[Applies to KMDF and UMDF]

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

Syntax

void WdfDeviceGetDeviceState(
  [in]      WDFDEVICE         Device,
  [in, out] PWDF_DEVICE_STATE DeviceState
);

Parameters

[in] Device

A handle to a framework device object.

[in, out] DeviceState

A pointer to a caller-allocated WDF_DEVICE_STATE structure that receives the device's state information.

Return value

None

Remarks

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

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
Library Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

See also

WDF_DEVICE_STATE_INIT