WDF_REQUEST_PARAMETERS_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfrequest.h

VOID WDF_REQUEST_PARAMETERS_INIT(
  [out] PWDF_REQUEST_PARAMETERS Parameters
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfrequest-wdf_request_parameters_init)

WDF_REQUEST_PARAMETERS_INIT function

Description

[Applies to KMDF and UMDF]

The WDF_REQUEST_PARAMETERS_INIT function initializes a WDF_REQUEST_PARAMETERS structure.

Parameters

Parameters [out]

A pointer to a caller-supplied WDF_REQUEST_PARAMETERS structure.

Remarks

Drivers must call WDF_REQUEST_PARAMETERS_INIT to initialize a WDF_REQUEST_PARAMETERS structure before calling WdfRequestGetParameters.

The WDF_REQUEST_PARAMETERS_INIT function zeros the specified WDF_REQUEST_PARAMETERS structure and sets the structure's Size member.

Examples

The following code example initializes a WDF_REQUEST_PARAMETERS structure and then calls WdfRequestGetParameters.

VOID
MyEvtIoDefault(
    IN WDFQUEUE  Queue,
    IN WDFREQUEST  Request
    )
{
    WDF_REQUEST_PARAMETERS  params;

    WDF_REQUEST_PARAMETERS_INIT(&params);

    WdfRequestGetParameters(
                            Request,
                            &params
                            );
...
}

See also

WDF_REQUEST_PARAMETERS

WdfRequestGetParameters