// udecxurb.h
NTSTATUS UdecxUrbRetrieveBuffer(
[in] WDFREQUEST Request,
[out] PUCHAR *TransferBuffer,
[out] PULONG Length
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the transfer buffer of an URB from the specified framework request object sent to the endpoint queue.
Request [in]A handle to a framework request object that contains the URB for the transfer.
TransferBuffer [out]A pointer to a buffer that receives the transfer buffer of an URB.
Length [out]A ULONG variable that receives the length of the buffer pointer to by TransferBuffer.
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. |
Architecture: USB Device Emulation (UDE)