need BthSetMode functionality in CE 5
来源:互联网 发布:centos 关机原因 编辑:程序博客网 时间:2024/05/20 09:45
am working on a BT app on CE 5 and need the functionality of BthSetMode. In
particular my app needs to be able to:
1. enable/disable discoverability
2. enable/disable connectability
3. power down BT to save battery life
I have scrounged through the source on CE 5 and 6 with no luck. I have also
looked through the registry in hopes of finding flags that could be set (no
luck). Also none of the socket options look any good for this functionality.
I thought of unloading the BT stack dlls but that seems extreme to me plus I
am concerned about the side effects.
Any ideas on this would be appreciated
解答:
While BTD is registered as a CE Service and you may you the
IOCTL_SERVICE_START and IOCTL_SERVICE_STOP to enable and disabled the BT
stack.
A samples could be found in
$(_WINCEROOT)/public/common/oak/drivers/bluetooth/SAMPLE/BTLOADER/btloader.cxx
For the Discoverability could be set via BthWriteScanEnableMask API and more
sample could be found in
$(_WINCEROOT)/public/common/oak/drivers/bluetooth/SAMPLE/BTCP/btcp.cxx
IOCTL_SERVICE_START and IOCTL_SERVICE_STOP to enable and disabled the BT
stack.
A samples could be found in
$(_WINCEROOT)/public/common/oak/drivers/bluetooth/SAMPLE/BTLOADER/btloader.cxx
For the Discoverability could be set via BthWriteScanEnableMask API and more
sample could be found in
$(_WINCEROOT)/public/common/oak/drivers/bluetooth/SAMPLE/BTCP/btcp.cxx
- need BthSetMode functionality in CE 5
- [Twain开发]Capabilities in Categories of Functionality
- Functionality in affectation of underground substructure in the estimated
- SHChangeNotifyRegister in Windows CE
- Need in Windows Azure (Updating)
- need to expert in flieds
- Add Open Command Prompt Here Functionality To Nautilus In Ubuntu
- How to add the CAPTCHA functionality in salesforce
- OpenCV non-free functionality (SURF) not built in 解决方法
- Interruption Management in Windows CE
- Memory marshalling in Windows CE
- Need to know PowerShell in SP2010
- Need custom data field in mysql
- Reverse Words in a String(Need edition)
- Why do we need Lambda in Java?
- Things Need To Be Done in 2016
- need
- need
- [转贴]用Selenium 自动化验收测试
- [转贴]用Selenium 自动化验收测试
- 关于ie是否忽略!important
- 四、六级写作分类范文
- windows server操作考试说明
- need BthSetMode functionality in CE 5
- 数的全排列
- SQL基础I
- 移位运算
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 有用的js
- 写作常见错误分析
- 3DS MAX插件开发(1)——开发环境配置
- 程序员如何在"小公司成长"和"大公司学习"