WDF_REQUEST_COMPLETION_PARAMS_INIT function (wdfrequest.h)

[Applies to KMDF and UMDF]

The WDF_REQUEST_COMPLETION_PARAMS_INIT function initializes a WDF_REQUEST_COMPLETION_PARAMS structure.

Syntax

void WDF_REQUEST_COMPLETION_PARAMS_INIT(
  [out] PWDF_REQUEST_COMPLETION_PARAMS Params
);

Parameters

[out] Params

A pointer to a caller-supplied WDF_REQUEST_COMPLETION_PARAMS structure.

Return value

None

Remarks

Drivers must call WDF_REQUEST_COMPLETION_PARAMS_INIT to initialize a WDF_REQUEST_COMPLETION_PARAMS structure before calling WdfRequestGetCompletionParams.

The WDF_REQUEST_COMPLETION_PARAMS_INIT function zeros the specified WDF_REQUEST_COMPLETION_PARAMS structure and sets the structure's Size member. It also sets the structure's Type member to WdfRequestTypeNoFormat.

Examples

For a code example that uses WDF_REQUEST_COMPLETION_PARAMS_INIT, see WdfRequestGetCompletionParams.

Requirements

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

See also

WDF_REQUEST_COMPLETION_PARAMS