Author Topic: BluetoothRemoveDevice()  (Read 14082 times)

Offline MrPaulCarpenter

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
BluetoothRemoveDevice()
« 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?


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: BluetoothRemoveDevice()
« Reply #1 on: January 16, 2020, 10:52:20 PM »
Hi,

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.

 

Sitemap 1 2 3 4 5 6 7