UdecxUrbRetrieveBuffer function (udecxurb.h)

Retrieves the transfer buffer of an URB from the specified framework request object sent to the endpoint queue.

Syntax

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

Parameters

[in] Request

A handle to a framework request object that contains the URB for the transfer.

[out] TransferBuffer

A pointer to a buffer that receives the transfer buffer of an URB.

[out] Length

A ULONG variable that receives the length of the buffer pointer to by TransferBuffer.

Return value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.

Return code Description
STATUS_INVALID_PARAMETER
The URB does not contain a transfer buffer.
STATUS_INSUFFICIENT_RESOURCES
The transfer buffer MDL was not valid.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Header udecxurb.h (include Udecx.h)
Library Udecxstub.lib
IRQL PASSIVE_LEVEL

See also

Architecture: USB Device Emulation (UDE)

UdecxUrbSetBytesCompleted

Write a UDE client driver