Partager via


fonction UCX_ENDPOINT_EVENT_CALLBACKS_INIT (ucxendpoint.h)

Initialise une structure UCX_ENDPOINT_EVENT_CALLBACKS avec les fonctions de rappel du pilote client. Le pilote client appelle cette fonction avant d’appeler méthode UcxEndpointCreate pour créer un point de terminaison et inscrire ses fonctions de rappel auprès d’UCX.

Syntaxe

void UCX_ENDPOINT_EVENT_CALLBACKS_INIT(
  [out] PUCX_ENDPOINT_EVENT_CALLBACKS           Callbacks,
  [in]  PFN_UCX_ENDPOINT_PURGE                  EvtEndpointPurge,
  [in]  PFN_UCX_ENDPOINT_START                  EvtEndpointStart,
  [in]  PFN_UCX_ENDPOINT_ABORT                  EvtEndpointAbort,
  [in]  PFN_UCX_ENDPOINT_RESET                  EvtEndpointReset,
  [in]  PFN_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS EvtEndpointOkToCancelTransfers,
  [in]  PFN_UCX_ENDPOINT_STATIC_STREAMS_ADD     EvtEndpointStaticStreamsAdd,
  [in]  PFN_UCX_ENDPOINT_STATIC_STREAMS_ENABLE  EvtEndpointStaticStreamsEnable,
  [in]  PFN_UCX_ENDPOINT_STATIC_STREAMS_DISABLE EvtEndpointStaticStreamsDisable
);

Paramètres

[out] Callbacks

Pointeur vers une structure UCX_ENDPOINT_EVENT_CALLBACKS qui contient des pointeurs vers les fonctions de rappel d’événements du pilote client.

[in] EvtEndpointPurge

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_PURGE.

[in] EvtEndpointStart

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_START.

[in] EvtEndpointAbort

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_ABORT.

[in] EvtEndpointReset

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_RESET.

[in] EvtEndpointOkToCancelTransfers

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_OK_TO_CANCEL_TRANSFERS.

[in] EvtEndpointStaticStreamsAdd

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_STATIC_STREAMS_ADD.

[in] EvtEndpointStaticStreamsEnable

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_STATIC_STREAMS_ENABLE.

[in] EvtEndpointStaticStreamsDisable

Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_STATIC_STREAMS_DISABLE.

Valeur de retour

Aucun

Exigences

Exigence Valeur
client minimum pris en charge Windows 10
plateforme cible Windows
version minimale de KMDF 1.0
version minimale de UMDF 2.0
d’en-tête ucxendpoint.h (include Ucxclass.h)

Voir aussi

UcxEndpointCreate