UdecxUsbSimpleEndpointInitAllocate - NtDoc

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

PUDECXUSBENDPOINT_INIT UdecxUsbSimpleEndpointInitAllocate(
  [in] UDECXUSBDEVICE UdecxUsbDevice
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-udecxusbendpoint-udecxusbsimpleendpointinitallocate)

UdecxUsbSimpleEndpointInitAllocate function

Description

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

Parameters

UdecxUsbDevice [in]

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.

See also

Architecture: USB Device Emulation (UDE)

UdecxUsbEndpointCreate

Write a UDE client driver