WDF_REQUEST_SEND_OPTIONS_INIT - NtDoc

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

VOID WDF_REQUEST_SEND_OPTIONS_INIT(
  [out] PWDF_REQUEST_SEND_OPTIONS Options,
  [in]  ULONG                     Flags
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

WDF_REQUEST_SEND_OPTIONS_INIT function

Description

[Applies to KMDF and UMDF]

The WDF_REQUEST_SEND_OPTIONS_INIT function initializes a driver's WDF_REQUEST_SEND_OPTIONS structure.

Parameters

Options [out]

A pointer to a caller-supplied WDF_REQUEST_SEND_OPTIONS structure.

Flags [in]

A bitwise OR of WDF_REQUEST_SEND_OPTIONS_FLAGS-typed flags.

Remarks

The WDF_REQUEST_SEND_OPTIONS_INIT function zeros the specified WDF_REQUEST_SEND_OPTIONS structure, sets the structure's Size member, and sets the Flag member to the specified Flags value.

Examples

The following code example initializes a WDF_REQUEST_SEND_OPTIONS structure and then calls WdfRequestSend.

WDF_REQUEST_SEND_OPTIONS options;
BOOLEAN ret;

WDF_REQUEST_SEND_OPTIONS_INIT(
                              &options,
                              WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET
                              );

ret = WdfRequestSend(
                     Request,
                     Target,
                     &options
                     );

See also

WDF_REQUEST_SEND_OPTIONS

WDF_REQUEST_SEND_OPTIONS_FLAGS

WDF_REQUEST_SEND_OPTIONS_SET_TIMEOUT