EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD callback function (udecxusbdevice.h)

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.

Syntax

EVT_UDECX_USB_DEVICE_DEFAULT_ENDPOINT_ADD EvtUdecxUsbDeviceDefaultEndpointAdd;

NTSTATUS EvtUdecxUsbDeviceDefaultEndpointAdd(
  [in] UDECXUSBDEVICE UdecxUsbDevice,
  [in] PUDECXUSBENDPOINT_INIT UdecxEndpointInit
)
{...}

Parameters

[in] UdecxUsbDevice

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.

[in] UdecxEndpointInit

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.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Header udecxusbdevice.h (include Udecx.h)
IRQL PASSIVE_LEVEL

See also

Architecture: USB Device Emulation (UDE)

UdecxUsbSimpleEndpointInitAllocate

Write a UDE client driver