Share via


UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT, fonction (ucxendpoint.h)

Initialise une structure UCX_DEFAULT_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_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT(
  [out] PUCX_DEFAULT_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_OK_TO_CANCEL_TRANSFERS EvtEndpointOkToCancelTransfers,
  [in]  PFN_UCX_DEFAULT_ENDPOINT_UPDATE         EvtDefaultEndpointUpdate
);

Paramètres

[out] Callbacks

Pointeur vers une structure UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS qui contient des pointeurs vers les fonctions de rappel d’événement 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] 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] EvtDefaultEndpointUpdate

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

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, Ucxendpoint.h)

Voir aussi

UcxEndpointCreate