在Windows Mobile上打开/关闭GPRS [英] Power On/Off GPRS on windows mobile

查看:93
本文介绍了在Windows Mobile上打开/关闭GPRS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种以编程方式打开或关闭GPRS适配器的方法。

i'm looking for a way to power on or off the GPRS adapter programatically.

推荐答案

如果您已经在使用智能设备框架,该功能已经存在于API中,如您在此博客条目(该博客用于W​​iFi,但电话广播和蓝牙的工作方式相同)。

If you're already using the Smart Device Framework, the ability is already there in the API, as you can see in this blog entry (the blog is for WiFi but the phone radio and bluetooth work the same way).

另一个选择是自己调用ossvcs.dll中的ChangeRadioState(这是SDF所做的事情)。

THe other option is to call ChangeRadioState in ossvcs.dll yourself (that's what the SDF is doing).

这篇关于在Windows Mobile上打开/关闭GPRS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆