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 codeDescription
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

Header

BluetoothAPIs.h (include Bthsdpdef.h or BluetoothAPIs.h)

Library

Bthprops.lib

DLL

Bthprops.dll

See also

BluetoothAuthenticateDevice
BluetoothAuthenticateMultipleDevices
BluetoothEnableDiscovery
BluetoothEnableIncomingConnections
BluetoothIsConnectable
BluetoothIsDiscoverable
BluetoothRegisterForAuthentication
BluetoothSendAuthenticationResponse
BLUETOOTH_DEVICE_INFO

 

 

Community Additions

ADD
Show: