Condividi tramite


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 NTSTATUS codice di errore.

Fabbisogno

Requisito Valore
client minimo supportato Windows 10
server minimo supportato Windows Server 2016
piattaforma di destinazione Finestre
versione minima di KMDF 1.15
intestazione udecxusbendpoint.h (include Udecx.h)
libreria Udecxstub.lib
IRQL PASSIVE_LEVEL

Vedere anche

architettura : UDE (USB Device Emulation)

UdecxUsbSimpleEndpointInitAllocate

Scrivere un driver client UDE