Funzione UfxEndpointInitSetEventCallbacks (ufxclient.h)
Inizializzare una struttura UFXENDPOINT_INIT.
Sintassi
void UfxEndpointInitSetEventCallbacks(
[in, out] PUFXENDPOINT_INIT EndpointInit,
[in] PUFX_ENDPOINT_CALLBACKS Callbacks
);
Parametri
[in, out] EndpointInit
Struttura opaca passata da UFX nella chiamata a EVT_UFX_DEVICE_ENDPOINT_ADD o EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD.
[in] Callbacks
Puntatore a una struttura UFX_ENDPOINT_CALLBACKS.
Valore restituito
Nessuno
Osservazioni
Il driver client chiama UfxEndpointCreare dalla relativa funzione di callback di eventi EVT_UFX_DEVICE_ENDPOINT_ADD o EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD per creare un nuovo endpoint.
Il driver client chiama prima UFX_ENDPOINT_CALLBACKS_INIT per inizializzare una struttura di UFX_ENDPOINT_CALLBACKS. Chiama quindi UfxEndpointCreate con la struttura di UFX_ENDPOINT_CALLBACKS inizializzata.
Per un esempio di codice che mostra come creare un oggetto UFXENDPOINT e inizializzarne il contesto, vedere la sezione Osservazioni di UfxEndpointCreate.
Fabbisogno
Requisito | Valore |
---|---|
client minimo supportato | Windows 10 |
piattaforma di destinazione | Finestre |
intestazione | ufxclient.h |
libreria | ufxstub.lib |
IRQL | PASSIVE_LEVEL |