UdecxUsbSimpleEndpointInitAllocate function (udecxusbendpoint.h)

Allocates memory for an initialization structure that is used to create a simple endpoint for the specified virtual USB device.

Syntax

PUDECXUSBENDPOINT_INIT UdecxUsbSimpleEndpointInitAllocate(
  [in] UDECXUSBDEVICE UdecxUsbDevice
);

Parameters

[in] UdecxUsbDevice

A handle to UDE device object. The client driver retrieved this pointer in the previous call to UdecxUsbDeviceCreate.

Return value

This method returns a pointer to an opaque UDECXUSBENDPOINT_INIT structure that contains the initialization parameters. The structure is allocated by the USB device emulation class extension (UdeCx).

Remarks

The UDE client driver calls this method to allocate parameters for a simple endpoint that is created by a subsequent call to UdecxUsbEndpointCreate. If the device is not created or the driver is finished using the resources, the driver must free the resources by calling UdecxUsbEndpointInitFree.

The only valid time to create simple endpoints is after creating a UDE device object and before calling UdecxUsbDevicePlugIn on the device.

Requirements

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

See also

Architecture: USB Device Emulation (UDE)

UdecxUsbEndpointCreate

Write a UDE client driver