WDF_DEVICE_STATE_INIT function (wdfdevice.h)

[Applies to KMDF and UMDF]

The WDF_DEVICE_STATE_INIT function initializes a driver's WDF_DEVICE_STATE structure.

Syntax

void WDF_DEVICE_STATE_INIT(
  [out] PWDF_DEVICE_STATE PnpDeviceState
);

Parameters

[out] PnpDeviceState

A pointer to a driver-allocated WDF_DEVICE_STATE structure.

Return value

None

Remarks

The WDF_DEVICE_STATE_INIT function initializes all of the WDF_DEVICE_STATE structure's WDF_TRI_STATE-typed members to WdfUseDefault.

Examples

For a code example that uses WDF_DEVICE_STATE_INIT, see WdfDeviceSetDeviceState.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)

See also

WDF_DEVICE_STATE