Partager via


Fonction BluetoothUnregisterAuthentication (bluetoothapis.h)

La fonction BluetoothUnregisterAuthentication supprime l’inscription pour une routine de rappel précédemment inscrite avec un appel à la fonction BluetoothRegisterForAuthentication .

Syntaxe

BOOL BluetoothUnregisterAuthentication(
  HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle
);

Paramètres

hRegHandle

Handle retourné par un appel précédent à la fonction BluetoothRegisterForAuthentication .

Valeur retournée

Retourne TRUE lorsque l’inscription d’authentification est supprimée. Retourne FALSE si le handle spécifié n’est pas fermé.

Appelez la fonction GetLastError pour obtenir plus d’informations sur l’erreur. Le tableau suivant décrit une erreur courante :

Code de retour Description
ERROR_INVALID_HANDLE
Le handle est NULL.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista, Windows XP avec SP2 [applications de bureau uniquement]
Serveur minimal pris en charge Aucun pris en charge
Plateforme cible Windows
En-tête bluetoothapis.h (inclure Bthsdpdef.h, BluetoothAPIs.h)
Bibliothèque Bthprops.lib
DLL bthprops.cpl

Voir aussi

BLUETOOTH_DEVICE_INFO

BluetoothAuthenticateDevice

BluetoothAuthenticateMultipleDevices

BluetoothEnableDiscovery

BluetoothEnableIncomingConnections

BluetoothIsConnectable

BluetoothIsDiscoverable

BluetoothRegisterForAuthentication

BluetoothSendAuthenticationResponse