管理在C#无线网络连接 [英] Managing wireless network connection in C#

查看:632
本文介绍了管理在C#无线网络连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经有了一个WinForms应用程序在C#编写,有一个非常定制的图形用户界面。用户不允许运行任何其他应用程序,并在所有的用户无法进入的OS(操作系统Pro)的。我们正计划允许用户连接到可用的无线网络。我们将不得不创建一个显示可用的网络(通过SSID),并允许用户连接配置屏幕。当连接我们要显示的信号强度。

We've got a WinForms app written in C# that has a very custom GUI. The user is not allowed to run any other applications and the user cannot go into the OS (WinXP Pro) at all. We're planning on allowing the user to connect to available wireless networks. We're going to have to create a configuration screen that displays available networks (by SSID) and allows the user to connect. While connected we want to display signal strength.

是否有提供此功能的任何现有的组件?我还没有发现什么,但这样的: http://sysnet.ucsd.edu/pawn/wrapi/

Are there any existing components that provide this capability? I haven't found anything but this: http://sysnet.ucsd.edu/pawn/wrapi/ .

我可以设置使用WMI的TCP / IP设置,但它是无线的东西,我需要一个方向。

I can set the TCP/IP settings using WMI, but it's the wireless stuff that I need a direction on.

非常感谢!

推荐答案

这应该工作:

HTTP://www.$c$cplex.com/managedwifi

这可能不是理想的 - 你有XP,这是很好的,但你必须部署的修补程序。我去了,因为所有的WiFi code我已经经历(为精简框架)是可怕的。这code很简单,只要可以。

This might not be ideal - you have XP, which is good, but you would have to deploy a hotfix. I'd go for it, because all the wifi code I've dealt with (for the Compact Framework) is hideous. This code is as simple as could be.

他们的样品code不包括读取信号的强度,不过,我不知道,如果本机的WiFi API提供。我已经写C#code,获取无线信号的强度,但它通过PInvoking到制造商特定的DLL仅在其设备上这样做。这可能是你必须做同样的从你的电脑的无线网卡的无线强度的东西(这也许可以解释为什么该功能不可用的全功能的API)。

Their sample code doesn't include reading the signal strength, though, and I'm not sure if the Native wifi API provides that. I have written C# code that gets the wireless signal strength, but it did this by PInvoking into a manufacturer-specific DLL available only on their devices. It may be that you'll have to do something similar to get the wireless strength from your PC's wireless card (and that may be why that functionality is not available in an all-purpose API).

这篇关于管理在C#无线网络连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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