// ucxusbdevice.h
EVT_UCX_USBDEVICE_RESET EvtUcxUsbdeviceReset;
VOID EvtUcxUsbdeviceReset(
[in] UCXCONTROLLER UcxController,
[in] WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The client driver's implementation that UCX calls when the port to which the device is attached is reset.
UcxController [in]A handle to the UCX controller that the client driver received in a previous call to the UcxControllerCreate method.
Request [in]Contains the USBDEVICE_RESET structure.
The UCX client driver registers this callback function with the USB host controller extension (UCX) by calling the UcxUsbDeviceCreate method.
To transition the device to the desired state, the host controller driver communicates with the hardware to complete the request.
The client driver returns completion status in Request. The driver can complete the WDFREQUEST asynchronously.
VOID
UsbDevice_EvtUcxUsbDeviceReset(
UCXCONTROLLER UcxController,
WDFREQUEST Request
)
{
UNREFERENCED_PARAMETER(UcxController);
DbgTrace(TL_INFO, UsbDevice, "UsbDevice_EvtUcxUsbDeviceReset");
WDF_REQUEST_PARAMETERS_INIT(&wdfRequestParams);
WdfRequestGetParameters(WdfRequest, &wdfRequestParams);
usbDeviceReset = (PUSBDEVICE_RESET)wdfRequestParams.Parameters.Others.Arg1;
...
WdfRequestComplete(Request, STATUS_SUCCESS);
}