UdecxUsbEndpointCreate function (udecxusbendpoint.h)

Creates a UDE endpoint object.

Syntax

NTSTATUS UdecxUsbEndpointCreate(
                 PUDECXUSBENDPOINT_INIT *EndpointInit,
  [in, optional] PWDF_OBJECT_ATTRIBUTES Attributes,
  [out]          UDECXUSBENDPOINT       *UdecxUsbEndpoint
);

Parameters

EndpointInit

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

[in, optional] Attributes

A pointer to a caller-allocated WDF_OBJECT_ATTRIBUTES structure that specifies attributes for the USB device object.

[out] UdecxUsbEndpoint

A pointer to a variable that receives a handle to the new UDE endpoint object that represents the simple endpoint on the USB device.

Return value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.

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)

UdecxUsbSimpleEndpointInitAllocate

Write a UDE client driver