WdfDevStateNormalize function (wdfdevice.h)

[Applies to KMDF and UMDF]

The WdfDevStateNormalize method removes extra bits from a specified framework state machine value so that the driver can use the value as an index into an array of machine states.

Syntax

ULONG WdfDevStateNormalize(
  [in] ULONG State
);

Parameters

[in] State

A state machine value that is returned from WdfDeviceGetDevicePnpState, WdfDeviceGetDevicePowerState, or WdfDeviceGetDevicePowerPolicyState.

Return value

WdfDevStateNormalize returns the specified State value with extra bits removed.

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 Any level