Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: MrPaulCarpenter on January 16, 2020, 07:41:15 PM

Title: BluetoothRemoveDevice()
Post by: MrPaulCarpenter on January 16, 2020, 07:41:15 PM
I need a way to remove a Bluetooth device from inside of a running program.  When making BT-BLE connections to our proprietary device, unpairing before making a connection, improves the success rate.
For Win-10 I use the BluetoothRemoveDevice() function in BluetoothAPIs.dll

But I am having trouble using this from Win-7, because the DLL appears to not be part of the O/S and when copied into system32 , it is dependent on other DLLs.  Various blogs have recommended NOT copying all the DLLs that it depends on.

When I search through the source code for WCL I see a private functions BluetoothRemoveDevice()  If I made this public, would it do the job?

Title: Re: BluetoothRemoveDevice()
Post by: Mike Petrichenko on January 16, 2020, 10:52:20 PM

Bluetooth Framework does not have such function. Unfortunately the question is outside the Bluetooth Framework. Its better to ask from Micrtosoft directly.

Bluetooth Framework provides wclBluetoothRadio.RemoteUnpair() for such things.