Funzione UdecxUsbEndpointCreate (udecxusbendpoint.h)

Crea un oggetto endpoint UDE.

Sintassi

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

Parametri

EndpointInit

Puntatore a una struttura UDECXUSBENDPOINT_INIT recuperata dal driver client nella chiamata precedente a UdecxUsbSimpleEndpointInitAllocate.

[in, optional] Attributes

Puntatore a una struttura WDF_OBJECT_ATTRIBUTES allocata dal chiamante che specifica gli attributi per l'oggetto dispositivo USB.

[out] UdecxUsbEndpoint

Puntatore a una variabile che riceve un handle per il nuovo oggetto endpoint UDE che rappresenta l'endpoint semplice nel dispositivo USB.

Valore restituito

Il metodo restituisce STATUS_SUCCESS se l'operazione ha esito positivo. In caso contrario, questo metodo potrebbe restituire un codice di errore NTSTATUS appropriato.

Requisiti

Requisito Valore
Client minimo supportato Windows 10
Server minimo supportato Windows Server 2016
Piattaforma di destinazione Windows
Versione KMDF minima 1.15
Intestazione udecxusbendpoint.h (include Udecx.h)
Libreria Udecxstub.lib
IRQL PASSIVE_LEVEL

Vedi anche

Architettura: Emulazione dispositivo USB (UDE)

UdecxUsbSimpleEndpointInitAllocate

Scrivere un driver client UDE