i'm looking for a way to power on or off the GPRS adapter programatically.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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).
THe other option is to call ChangeRadioState in ossvcs.dll yourself (that's what the SDF is doing).