// udecxusbdevice.h
EVT_UDECX_USB_DEVICE_ENDPOINT_ADD EvtUdecxUsbDeviceEndpointAdd;
NTSTATUS EvtUdecxUsbDeviceEndpointAdd(
[in] UDECXUSBDEVICE UdecxUsbDevice,
[in] PUDECX_USB_ENDPOINT_INIT_AND_METADATA EndpointToCreate
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The USB device emulation class extension (UdeCx) invokes this callback function to request the client driver to create a dynamic endpoint on the virtual USB device.
UdecxUsbDevice [in]A handle to the UDE device object for which the client driver creates an endpoint. The driver created this object in a previous call to UdecxUsbDeviceCreate.
EndpointToCreate [in]A pointer to a UDECX_USB_ENDPOINT_INIT_AND_METADATA structure that contains the endpoint descriptor.
If the operation is successful, the callback function must return STATUS_SUCCESS, or another status value for which NT_SUCCESS(status) equals TRUE.
The client driver registered this callback function in a previous call to UdecxUsbDeviceInitSetStateChangeCallbacks by supplying a function pointer to its implementation.
In the implementation, the client driver is expected to create the endpoint by calling UdecxUsbEndpointCreate by using the initialization parameters (UDECXUSBENDPOINT_INIT) passed by the class extension in the UDECX_USB_ENDPOINT_INIT_AND_METADATA structure.
Architecture: USB Device Emulation (UDE)