WDF_DEVICE_STATE_INIT function
[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
- PnpDeviceState [out]
-
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
Minimum KMDF version | 1.0 |
---|---|
Minimum UMDF version | 2.0 |
Header |
|
See also
Show: