Windows – Programmatically connect to bluetooth headsets on Windows Mobile

bluetoothwindows-mobile

On a Windows Mobile 5.0 device I have an MFC C++ kiosk application that should programmatically connect to one of 3 Bluetooth headsets and open a bidirectional audio connection to it.

The headsets are already known to the device, it's only the switching and connecting part that should be done programmatically.

How would I do that?

I'm aware of the thread How to “Connect via Bluetooth” in WM programmatically? but would like to have a way that works in C++.

Any ideas?

Best Answer

I would start looking in MSDN Windows Mobile 5.0 documentation for the Blue Tooth APIS.

The changing of the Audio Device to the Bluetooth device is likely to be the hard bit. Depending on what application you are trying to switch between you may like to look into Waveform Audio for Windows Mobile-based Devices API.

Having never done any of the above, I can't say if it's enough but it should get you started.

Related Topic