打开/关闭Wi-Fi收音机。 [英] Turn On/Off wi-fi radio.

查看:100
本文介绍了打开/关闭Wi-Fi收音机。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经为CASIO手持设备开发了自己的SDK程序。我能够使用某种功能轻松打开/关闭wifi。

我可以为普通的pdas做这个吗?例如的iPAQ。我想打开和关闭wifi,而不必退出我的程序。

谢谢

Harry

I once developed  programs for CASIO handhelds which had their own SDKs.  I was able to turn on/off the wifi easily using a certain function.

Can I do this for normal pdas? e.g. iPAQS.  I want to turn on and off the wifi without having to exit my program. 

Thanks

Harry

推荐答案



您好
是的,您可以切换on\off iPAQs PDA的WiFi连接,我已经用这种方式完成了:



#include< Pm.h>

/ / ......



#define adapterName L" {98C5250D-C29A-4985-AE5F-AFE5367E5006} \\TIACXWLN1"



void Ccellid01Dlg :: OnBnClickedButtonstartwifi()

{

DevicePowerNotify(adapterName,D0,1);

SetDevicePower(adapterName,1 ,D0);

}

void Ccellid01Dlg :: OnBnClickedButtonstopwifi()

{

DevicePowerNotify(adapterName,D4,1);

SetDevicePower(adapterName,1,D4);

}





问候

Hi
Yes you can switch on\off the WiFi connection of iPAQs PDA, I used already done it in this way :

#include <Pm.h>
  //......

#define adapterName L"{98C5250D-C29A-4985-AE5F-AFE5367E5006}\\TIACXWLN1"

void Ccellid01Dlg::OnBnClickedButtonstartwifi()
{
    DevicePowerNotify(adapterName, D0, 1);
    SetDevicePower(adapterName, 1, D0);    
}
void Ccellid01Dlg::OnBnClickedButtonstopwifi()
{
    DevicePowerNotify(adapterName, D4, 1);
    SetDevicePower(adapterName, 1, D4);    
}


Regards


这篇关于打开/关闭Wi-Fi收音机。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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