Bewerken

Delen via


WDF_REQUEST_FORWARD_OPTIONS_INIT function (wdfrequest.h)

[Applies to KMDF only]

The WDF_REQUEST_FORWARD_OPTIONS_INIT function initializes a WDF_REQUEST_FORWARD_OPTIONS structure.

Syntax

void WDF_REQUEST_FORWARD_OPTIONS_INIT(
  [out] PWDF_REQUEST_FORWARD_OPTIONS ForwardOptions
);

Parameters

[out] ForwardOptions

A pointer to a WDF_REQUEST_FORWARD_OPTIONS structure.

Return value

None

Remarks

Before a driver calls WdfRequestForwardToParentDeviceIoQueue, it must call WDF_REQUEST_FORWARD_OPTIONS_INIT to initialize a WDF_REQUEST_FORWARD_OPTIONS structure.

The WDF_REQUEST_FORWARD_OPTIONS_INIT function zeros the specified WDF_REQUEST_FORWARD_OPTIONS structure and sets the structure's Size member. Then the function sets the WDF_REQUEST_FORWARD_OPTION_SEND_AND_FORGET flag.

For a code example that uses WDF_REQUEST_FORWARD_OPTIONS_INIT, see WdfRequestForwardToParentDeviceIoQueue.

Requirements

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

See also

WDF_REQUEST_FORWARD_OPTIONS

WdfRequestForwardToParentDeviceIoQueue