Partager via


fonction UCX_DEFAULT_ENDPOINT_EVENT_CALLBACKS_INIT (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 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é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] 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] EvtDefaultEndpointUpdate

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

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

Voir aussi

UcxEndpointCreate