使用 C# 配置 Wifi 设置 [英] Configure Wifi Settings using C#
问题描述
如何使用 C#(紧凑型框架)为 Win Mobile 应用程序配置 Wifi 设置?
How to configure Wifi Settings for a Win Mobile application using C# (compact framework)?
所以交易是:
- 配置网络(隐藏 AP 的 SSID)
- 使用 TKIP 进行 WPA 身份验证
- 强制用户和密码(不会提示最终用户进行身份验证)
推荐答案
查看智能设备框架.它有一个包含大量 WZC 功能的 NetworkInformation 命名空间.我知道它将使用 TKIP(以及开放)执行 WEP 和 WPA.它允许您传入密钥材料,设置大多数选项等.
Take a look at the Smart Device Framework. It has a NetworkInformation namespace that wrap a large amount of the WZC functionality. I know it will do WEP and WPA with TKIP (as well as open). It allows you to pass in the key material, set up most options, etc.
具体看WirelessZeroConfigNetworkInterface类 是 AddPreferredNetwork 方法.
Look specifically at the WirelessZeroConfigNetworkInterface class and it's AddPreferredNetwork method.
编辑:如果您想知道直接使用哪些 API,请您将从这里开始.
Edit: If you're curious what APIs you'd use directly, you'd start here.
这篇关于使用 C# 配置 Wifi 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!