WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT function

[Applies to KMDF and UMDF]

The WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT function initializes a WDF_DRIVER_VERSION_AVAILABLE_PARAMS structure.

Syntax

void WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT(
  PWDF_DRIVER_VERSION_AVAILABLE_PARAMS Params,
  ULONG                                MajorVersion,
  ULONG                                MinorVersion
);

Parameters

Params

A pointer to a WDF_DRIVER_VERSION_AVAILABLE_PARAMS structure.

MajorVersion

A numeric value that represents the Kernel-Mode Driver Framework library's major version number.

MinorVersion

A numeric value that represents the Kernel-Mode Driver Framework library's minor version number.

Return Value

None

Remarks

The WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT function zeros the WDF_DRIVER_VERSION_AVAILABLE_PARAMS structure that the Params parameter points to and sets the structure's Size member. Then, this function sets the structure's MajorVersion and MinorVersion members to the specified values.

Examples

For a code example that uses WDF_DRIVER_VERSION_AVAILABLE_PARAMS_INIT, see WdfDriverIsVersionAvailable.

Requirements

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

See Also

WDF_DRIVER_VERSION_AVAILABLE_PARAMS