编程连接到蓝牙Windows Mobile的耳机 [英] Programmatically connect to bluetooth headsets on Windows Mobile
问题描述
在Windows Mobile 5.0设备我有一个MFC的C ++应用程序亭应该编程连接的3蓝牙耳机一个,打开它的双向音频连接。
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.
我将如何做呢?
我知道线程<一的href=\"http://stackoverflow.com/questions/467524/how-to-connect-via-bluetooth-in-wm-programmatically\">How在WM通过蓝牙连接编程?但希望有一个在C ++中的工作方式。
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++.
任何想法?
推荐答案
我就开始寻找MSDN Windows Mobile 5.0的文档中的的蓝牙APIS 。
I would start looking in MSDN Windows Mobile 5.0 documentation for the Blue Tooth APIS.
音频设备的蓝牙设备的变化很可能是有点难。根据你想你之间切换哪些应用程序可能喜欢寻找到波形音频为基于Windows Mobile的设备API 。
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.
这篇关于编程连接到蓝牙Windows Mobile的耳机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!