Funzione UfxDeviceEventComplete (ufxclient.h)
Informa UFX che il driver client ha completato l'elaborazione di una funzione di callback UFX.
Sintassi
void UfxDeviceEventComplete(
[in] UFXDEVICE UfxDevice,
[in] NTSTATUS Status
);
Parametri
[in] UfxDevice
Handle per un oggetto dispositivo UFX creato dal driver chiamando UfxDeviceCreate.
[in] Status
Stato dell'evento da completare.
Valore restituito
Nessuno
Osservazioni
Il driver client chiama UfxDeviceEventComplete per segnalare il completamento delle funzioni di callback seguenti:
- EVT_UFX_DEVICE_HOST_CONNECT
- EVT_UFX_DEVICE_HOST_DISCONNECT
- EVT_UFX_DEVICE_PROPRIETARY_CHARGER_SET_PROPERTY
- EVT_UFX_DEVICE_PROPRIETARY_CHARGER_RESET
- EVT_UFX_DEVICE_ADDRESSED
- EVT_UFX_DEVICE_DEFAULT_ENDPOINT_ADD
- EVT_UFX_DEVICE_USB_STATE_CHANGE
- EVT_UFX_DEVICE_PORT_CHANGE
- EVT_UFX_DEVICE_REMOTE_WAKEUP_SIGNAL
- EVT_UFX_DEVICE_TEST_MODE_SET
- EVT_UFX_DEVICE_SUPER_SPEED_POWER_FEATURE
- EVT_UFX_DEVICE_CONTROLLER_RESET
EventComplete = TRUE;
...
if (EventComplete) {
UfxDeviceEventComplete(UfxDevice, STATUS_SUCCESS);
}
Fabbisogno
Requisito | Valore |
---|---|
client minimo supportato | Windows 10 |
piattaforma di destinazione | Finestre |
intestazione | ufxclient.h |
libreria | ufxstub.lib |
IRQL | DISPATCH_LEVEL |