如何实现“通讯管理”的功能?

azmao 2009-03-26 08:47:51
我在多普达P660上使用蓝牙虚拟串口,虚拟了一个COM6。然后使用serialport解决了通讯问题。
但在程序运行前必须打开手机的“通讯管理”功能,手动的打开蓝牙。
很不方便,如何在程序中实现打开蓝牙功能呢?
...全文
203 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ppc_2008 2009-03-26
  • 打赏
  • 举报
回复
帮你顶一下
88csdn 2009-03-26
  • 打赏
  • 举报
回复
C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CS\Bluetooth\SpaceWar2D
儿大不由爷 2009-03-26
  • 打赏
  • 举报
回复
Wireless Device Power Management Functions API 你去微软的文档里找找相应的API。比较复杂。

Programming element Description
ChangeRadioState
This function turns a specific radio on or off.

ChangeWirelessState
This function changes the global power state of all wireless devices.

GetAndMonitorWirelessDevices
This function retrieves the list of wireless devices in the system and sets up a monitoring thread to notify the caller of subsequent insertion and removal of power-managed wireless devices.

GetWirelessDevices
This function retrieves the linked list of the wireless devices in the system.

GetWirelessState
This function retrieves the global state of wireless devices from the registry.

FreeDeviceList
This function traverses the linked list of wireless devices and releases all RDD nodes that contain device information.

OnRadioPowerTransition
This function is invoked by the shell in response to a radio power state change event.

UpdateRadioStoredState
This function updates the desired state for the specified wireless device.

Header wrlspwr.h
Library ossvcs.lib

如果你有AKU,直接配置到里边的Include和Lib,SDK里好像没有,你找找看。


azmao 2009-03-26
  • 打赏
  • 举报
回复
要打开和关闭手机的蓝牙功能。
儿大不由爷 2009-03-26
  • 打赏
  • 举报
回复
你要开关蓝牙设备?

7,660

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧