funzione WDF_REQUEST_SEND_OPTIONS_INIT (wdfrequest.h)

[Si applica a KMDF e UMDF]

La funzione WDF_REQUEST_SEND_OPTIONS_INIT inizializza la struttura di WDF_REQUEST_SEND_OPTIONS di un driver.

Sintassi

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

Parametri

[out] Options

Puntatore a una struttura di WDF_REQUEST_SEND_OPTIONS fornita dal chiamante.

[in] Flags

OR bit per bit di flag tipizzato di WDF_REQUEST_SEND_OPTIONS_FLAGS.

Valore restituito

nessuno

Osservazioni

La funzione WDF_REQUEST_SEND_OPTIONS_INIT zero la struttura WDF_REQUEST_SEND_OPTIONS specificata, imposta il membro Size della struttura e imposta il membro Flag sul valore Flags specificato.

Esempio

Nell'esempio di codice seguente viene inizializzata una struttura WDF_REQUEST_SEND_OPTIONS e quindi viene chiamato 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
                     );

Requisiti

Requisito Valore
Piattaforma di destinazione Universale
Versione KMDF minima 1.0
Versione UMDF minima 2,0
Intestazione wdfrequest.h (include Wdf.h)

Vedi anche

WDF_REQUEST_SEND_OPTIONS

WDF_REQUEST_SEND_OPTIONS_FLAGS

WDF_REQUEST_SEND_OPTIONS_SET_TIMEOUT