BluetoothRemoveDevice function

The BluetoothRemoveDevice function removes authentication between a Bluetooth device and the computer and clears cached service information for the device.

Syntax

DWORD BluetoothRemoveDevice(
  const BLUETOOTH_ADDRESS *pAddress
);

Parameters

pAddress

A pointer to the address of the Bluetooth device to be removed.

Return Value

Returns ERROR_SUCCESS upon successful removal of the Bluetooth device. Returns ERROR_NOT_FOUND if the device was not found.

Remarks

The BluetoothRemoveDevice function fails if the device indicated by pAddress is not a remembered device.

Requirements

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

See Also

BLUETOOTH_DEVICE_INFO

BLUETOOTH_DEVICE_SEARCH_PARAMS

BluetoothDisplayDeviceProperties

BluetoothFindDeviceClose

BluetoothFindFirstDevice

BluetoothFindNextDevice

BluetoothGetDeviceInfo