WDF_REQUEST_REUSE_PARAMS struttura (wdfrequest.h)

[Si applica a KMDF e UMDF]

La struttura WDF_REQUEST_REUSE_PARAMS specifica informazioni associate a una richiesta di I/O riutilizzata.

Sintassi

typedef struct _WDF_REQUEST_REUSE_PARAMS {
  ULONG    Size;
  ULONG    Flags;
  NTSTATUS Status;
  PIRP     NewIrp;
} WDF_REQUEST_REUSE_PARAMS, *PWDF_REQUEST_REUSE_PARAMS;

Members

Size

Dimensione, in byte, della struttura.

Flags

Or bit per bit di uno o più flag tipizzato WDF_REQUEST_REUSE_FLAGS.

Status

Valore NTSTATUS assegnato al framework alla richiesta.

NewIrp

Puntatore a una struttura IRP . Il valore del membro è facoltativo e può essere NULL.

Commenti

La struttura WDF_REQUEST_REUSE_PARAMS viene usata come input per WdfRequestReuse.

Per inizializzare questa struttura, il driver deve chiamare WDF_REQUEST_REUSE_PARAMS_INIT. Per impostare un valore NewIrp nella struttura, il driver deve chiamare WDF_REQUEST_REUSE_PARAMS_SET_NEW_IRP dopo aver chiamato WDF_REQUEST_REUSE_PARAMS_INIT.

Se un driver inferiore deve accedere al valore Stato, può trovarlo nel campo Irp-IoStatus.Status>.

È possibile impostare un valore NewIrp solo se la richiesta di I/O fornita a WdfRequestReuse è stata creata chiamando WdfRequestCreate o WdfRequestCreateFromIrp.

Requisiti

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

Vedi anche

WDF_REQUEST_REUSE_FLAGS

WDF_REQUEST_REUSE_PARAMS_INIT

WDF_REQUEST_REUSE_PARAMS_SET_NEW_IRP

WdfRequestCreateFromIrp

WdfRequestReuse