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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for