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?