Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initialise une structure UCX_USBDEVICE_EVENT_CALLBACKS avec les pointeurs de fonction vers les fonctions de rappel du pilote client.
Syntaxe
VOID UCX_USBDEVICE_EVENT_CALLBACKS_INIT(
[out] PUCX_USBDEVICE_EVENT_CALLBACKS Callbacks,
[in] PFN_UCX_USBDEVICE_ENDPOINTS_CONFIGURE EvtUsbDeviceEndpointsConfigure,
[in] PFN_UCX_USBDEVICE_ENABLE EvtUsbDeviceEnable,
[in] PFN_UCX_USBDEVICE_DISABLE EvtUsbDeviceDisable,
[in] PFN_UCX_USBDEVICE_RESET EvtUsbDeviceReset,
[in] PFN_UCX_USBDEVICE_ADDRESS EvtUsbDeviceAddress,
[in] PFN_UCX_USBDEVICE_UPDATE EvtUsbDeviceUpdate,
[in] PFN_UCX_USBDEVICE_HUB_INFO EvtUsbDeviceHubInfo,
[in] PFN_UCX_USBDEVICE_DEFAULT_ENDPOINT_ADD EvtUsbDeviceDefaultEndpointAdd,
[in] PFN_UCX_USBDEVICE_ENDPOINT_ADD EvtUsbDeviceEndpointAdd
);
Paramètres
[out] Callbacks
Pointeur vers une structure UCX_USBDEVICE_EVENT_CALLBACKS à initialiser.
[in] EvtUsbDeviceEndpointsConfigure
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_ENDPOINTS_CONFIGURE.
[in] EvtUsbDeviceEnable
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_ENABLE.
[in] EvtUsbDeviceDisable
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_DISABLE.
[in] EvtUsbDeviceReset
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_RESET.
[in] EvtUsbDeviceAddress
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_ADDRESS.
[in] EvtUsbDeviceUpdate
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_UPDATE.
[in] EvtUsbDeviceHubInfo
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_HUB_INFO.
[in] EvtUsbDeviceDefaultEndpointAdd
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_DEFAULT_ENDPOINT_ADD.
[in] EvtUsbDeviceEndpointAdd
Pointeur vers l’implémentation du pilote client de la fonction de rappel d’événement EVT_UCX_USBDEVICE_ENDPOINT_ADD.
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 | ucxusbdevice.h (include Ucxclass.h) |