BluetoothUnregisterAuthentication function

The BluetoothUnregisterAuthentication function removes registration for a callback routine that was previously registered with a call to the BluetoothRegisterForAuthentication function.

Syntax

BOOL BluetoothUnregisterAuthentication(
  HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle
);

Parameters

hRegHandle

Handle returned by a previous call to the BluetoothRegisterForAuthentication function.

Return Value

Returns TRUE when the authentication registration is successfully removed. Returns FALSE if the specified handle is not successfully closed.

Call the GetLastError function to obtain more information about the error. The following table describes a common error:

Return code Description
ERROR_INVALID_HANDLE
The handle is NULL.

Requirements

   
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header bluetoothapis.h (include Bthsdpdef.h, BluetoothAPIs.h)
Library Bthprops.lib
DLL Bthprops.dll

See Also

BLUETOOTH_DEVICE_INFO

BluetoothAuthenticateDevice

BluetoothAuthenticateMultipleDevices

BluetoothEnableDiscovery

BluetoothEnableIncomingConnections

BluetoothIsConnectable

BluetoothIsDiscoverable

BluetoothRegisterForAuthentication

BluetoothSendAuthenticationResponse