Funzione BluetoothUnregisterAuthentication (bluetoothapis.h)

La funzione BluetoothUnregisterAuthentication rimuove la registrazione per una routine di callback registrata in precedenza con una chiamata alla funzione BluetoothRegisterForAuthentication .

Sintassi

BOOL BluetoothUnregisterAuthentication(
  HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle
);

Parametri

hRegHandle

Handle restituito da una chiamata precedente alla funzione BluetoothRegisterForAuthentication .

Valore restituito

Restituisce TRUE quando la registrazione di autenticazione viene rimossa correttamente. Restituisce FALSE se l'handle specificato non viene chiuso correttamente.

Chiamare la funzione GetLastError per ottenere altre informazioni sull'errore. La tabella seguente descrive un errore comune:

Codice restituito Descrizione
ERROR_INVALID_HANDLE
L'handle è NULL.

Requisiti

Requisito Valore
Client minimo supportato Windows Vista, Windows XP con SP2 [solo app desktop]
Server minimo supportato Nessuno supportato
Piattaforma di destinazione Windows
Intestazione bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h)
Libreria Bthprops.lib
DLL bthprops.cpl

Vedi anche

BLUETOOTH_DEVICE_INFO

BluetoothAuthenticateDevice

BluetoothAuthenticateMultipleDevices

BluetoothEnableDiscovery

BluetoothEnableIncomingConnections

BluetoothIsConnectable

BluetoothIsDiscoverable

BluetoothRegisterForAuthentication

BluetoothSendAuthenticationResponse