Funzione UdecxUrbRetrieveBuffer (udecxurb.h)

Recupera il buffer di trasferimento di un OGGETTO RICHIESTA FRAMEWORK specificato inviato alla coda dell'endpoint.

Sintassi

NTSTATUS UdecxUrbRetrieveBuffer(
  [in]  WDFREQUEST Request,
  [out] PUCHAR     *TransferBuffer,
  [out] PULONG     Length
);

Parametri

[in] Request

Handle a un oggetto request framework che contiene l'ISTANZA DI PER il trasferimento.

[out] TransferBuffer

Puntatore a un buffer che riceve il buffer di trasferimento di un OGGETTO URB.

[out] Length

Variabile ULONG che riceve la lunghezza del puntatore del buffer a da TransferBuffer.

Valore restituito

Il metodo restituisce STATUS_SUCCESS se l'operazione ha esito positivo. In caso contrario, questo metodo potrebbe restituire un codice di errore NTSTATUS appropriato.

Codice restituito Descrizione
STATUS_INVALID_PARAMETER
L'ORDINAMENTO non contiene un buffer di trasferimento.
STATUS_INSUFFICIENT_RESOURCES
MDL del buffer di trasferimento non è valido.

Requisiti

Requisito Valore
Client minimo supportato Windows 10
Server minimo supportato Windows Server 2016
Piattaforma di destinazione Windows
Versione KMDF minima 1.15
Intestazione udecxurb.h (includere Udecx.h)
Libreria Udecxstub.lib
IRQL PASSIVE_LEVEL

Vedi anche

Architettura: Emulazione dispositivo USB (UDE)

UdecxUrbSetBytesCompleted

Scrivere un driver client UDE