UfxEndpointInitSetEventCallbacks, fonction (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 passée 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
Aucun
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 de 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 Notes de UfxEndpointCreate.
Exigences
Exigence | Valeur |
---|---|
client minimum pris en charge | Windows 10 |
plateforme cible | Windows |
d’en-tête | ufxclient.h |
bibliothèque | ufxstub.lib |
IRQL | PASSIVE_LEVEL |