Share via


Fonction UfxEndpointInitSetEventCallbacks (ufxclient.h)

Initialisez une structure UFXENDPOINT_INIT .

Syntaxe

void UfxEndpointInitSetEventCallbacks(
  [in, out] PUFXENDPOINT_INIT       EndpointInit,
  [in]      PUFX_ENDPOINT_CALLBACKS Callbacks
);

Paramètres

[in, out] EndpointInit

Structure opaque transmise par UFX dans l’appel à EVT_UFX_DEVICE_ENDPOINT_ADD ou EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD.

[in] Callbacks

Pointeur vers une structure UFX_ENDPOINT_CALLBACKS .

Valeur de retour

None

Remarques

Le pilote client appelle UfxEndpointCreate à partir de sa fonction de rappel d’événement EVT_UFX_DEVICE_ENDPOINT_ADD ou EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD afin de créer un point de terminaison.

Le pilote client appelle d’abord UFX_ENDPOINT_CALLBACKS_INIT pour initialiser une structure de UFX_ENDPOINT_CALLBACKS . Ensuite, il appelle UfxEndpointCreate avec la structure UFX_ENDPOINT_CALLBACKS initialisée.

Pour obtenir un exemple de code qui montre comment créer un objet UFXENDPOINT et initialiser son contexte, consultez la section Remarques de UfxEndpointCreate.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 10
Plateforme cible Windows
En-tête ufxclient.h
Bibliothèque ufxstub.lib
IRQL PASSIVE_LEVEL