UCX_ENDPOINT_EVENT_CALLBACKS_INIT fonction (ucxendpoint.h)

Initialise une structure de UCX_ENDPOINT_EVENT_CALLBACKS avec les fonctions de rappel du pilote client. Le pilote client appelle cette fonction avant d’appeler la 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 de 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 par le pilote client de la fonction de rappel d’événement EVT_UCX_ENDPOINT_PURGE .

[in] EvtEndpointStart

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

[in] EvtEndpointAbort

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

[in] EvtEndpointReset

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

[in] EvtEndpointOkToCancelTransfers

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

[in] EvtEndpointStaticStreamsAdd

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

[in] EvtEndpointStaticStreamsEnable

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

[in] EvtEndpointStaticStreamsDisable

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

Valeur de retour

None

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 10
Plateforme cible Windows
Version KMDF minimale 1.0
Version UMDF minimale 2.0
En-tête ucxendpoint.h (inclure Ucxclass.h)

Voir aussi

UcxEndpointCreate