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

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

BluetoothDisplayDeviceProperties
BluetoothFindFirstDevice
BluetoothFindNextDevice
BluetoothFindDeviceClose
BluetoothGetDeviceInfo
BLUETOOTH_DEVICE_INFO
BLUETOOTH_DEVICE_SEARCH_PARAMS

 

 

Community Additions

ADD
Show: