// udecxusbendpoint.h
EVT_UDECX_USB_ENDPOINT_RESET EvtUdecxUsbEndpointReset;
VOID EvtUdecxUsbEndpointReset(
[in] UDECXUSBENDPOINT UdecxUsbEndpoint,
[in] WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The USB device emulation class extension (UdeCx) invokes this callback function to reset an endpoint of the virtual USB device.
UdecxUsbEndpoint [in]A handle to a UDE endpoint object that represents the endpoint to reset. The client driver retrieved this pointer in the previous call to UdecxUsbEndpointCreate.
Request [in]A handle to a framework request object that represents the request to reset the endpoint.
The client driver registered this callback function in a previous call to UdecxUsbEndpointInitSetCallbacks by supplying a function pointer to its implementation.
The reset request clears the error condition in the endpoint that causes failed I/O transfers. At that time, UdeCx can invoke the EVT_UDECX_USB_ENDPOINT_RESET callback function. That call is asynchronous. The client driver completes the request and signals completion with status by calling WdfRequestCompleteWithInformation method . (this is the only way the UDECX client uses the request parameter).
Architecture: USB Device Emulation (UDE)
How to recover from USB pipe errors