EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// udecxusbdevice.h

EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD EvtUdecxUsbDeviceDefaultEndpointAdd;

NTSTATUS EvtUdecxUsbDeviceDefaultEndpointAdd(
  [in] UDECXUSBDEVICE UdecxUsbDevice,
  [in] PUDECXUSBENDPOINT_INIT UdecxEndpointInit
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-udecxusbdevice-evt_udecx_usb_device_default_endpoint_add)

EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD callback function

Description

The USB device emulation class extension (UdeCx) invokes this callback function to request the client driver to create the default control endpoint on the virtual USB device.

Parameters

UdecxUsbDevice [in]

A handle to the UDE device object for which the client driver creates the default endpoint. The driver created this object in a previous call to UdecxUsbDeviceCreate.

UdecxEndpointInit [in]

A pointer to an UDECXUSBENDPOINT_INIT structure that the client driver retrieved in the previous call to UdecxUsbSimpleEndpointInitAllocate.

Return value

If the operation is successful, the callback function must return STATUS_SUCCESS, or another status value for which NT_SUCCESS(status) equals TRUE.

See also

Architecture: USB Device Emulation (UDE)

UdecxUsbSimpleEndpointInitAllocate

Write a UDE client driver