- 浏览: 959400 次
- 性别:
- 来自: 珠海
文章分类
最新评论
-
Yunjey:
Yunjey 写道这样子的话、grid中的editable如何 ...
Flex创建可编辑以及分页的DataGrid -
Yunjey:
这样子的话、grid中的editable如何设置啊?!
Flex创建可编辑以及分页的DataGrid -
di1984HIT:
写的很好~~
JCalendar组件 -
sanny81:
此文真棒!感谢一路风尘的奉献!
但我有一疑 ...
Filter发送自定义数据详解 -
umgsai:
求完整demo umgsai@126.com
Flex和Jsp创建用户登入系统
这个是SDK里面的一个例子:Native Wifi API Sample。该例子通过一些基本的函数实现对无线网络的管理。比如:实现网卡枚举,扫描,连接、断开网络等。
代码位置:C:\Program Files\Microsoft SDKs\Windows\<version number>\Samples\NetDs\Wlan 可以在XP、Vista甚至Windows7上编译和运行。该程序展示的功能如下:
关于每个功能函数的具体描述可以使用help,如:
下面是运行实例:
获取网络接口:
获取可见网络:包含了SSID, 信号强度值
连接某个网络:(这里不适用connect,是因为本机测试时无法获取接口的profile,所有使用discovery)
断开网络连接连接:
附件有编译好的可执行文件。
附上所有命令详细格式:
代码位置:C:\Program Files\Microsoft SDKs\Windows\<version number>\Samples\NetDs\Wlan 可以在XP、Vista甚至Windows7上编译和运行。该程序展示的功能如下:
引用
* EnumInterface(ei)
* GetInterfaceCapability(gic)
* QueryInterface(qi)
* SetRadioState(srs)
* GetDriverStatistics(gds)
* Scan(scan)
* GetBssList(gbs)
* GetVisibleNetworkList(gvl)
* SetProfile(sp)
* SaveTempProfile(stp)
* GetProfile(gp)
* DeleteProfile(dp)
* SetProfileList(spl)
* GetProfileList(gpl)
* Connect(conn)
* Disconnect(dc)
* Discover(disc)
* RegisterNotif(r)
* help(?)
* GetInterfaceCapability(gic)
* QueryInterface(qi)
* SetRadioState(srs)
* GetDriverStatistics(gds)
* Scan(scan)
* GetBssList(gbs)
* GetVisibleNetworkList(gvl)
* SetProfile(sp)
* SaveTempProfile(stp)
* GetProfile(gp)
* DeleteProfile(dp)
* SetProfileList(spl)
* GetProfileList(gpl)
* Connect(conn)
* Disconnect(dc)
* Discover(disc)
* RegisterNotif(r)
* help(?)
关于每个功能函数的具体描述可以使用help,如:
引用
wlsample help ei
下面是运行实例:
获取网络接口:
引用
C:\Users\Leyond\Desktop\wlan\autoconfig\Debug>wlsample ei
There are 1 interfaces in the system.
Interface 0:
GUID: 7b17a851-3a3f-4c2e-be4e-a35670cb1212
RT73 USB
There are 1 interfaces in the system.
Interface 0:
GUID: 7b17a851-3a3f-4c2e-be4e-a35670cb1212
RT73 USB
获取可见网络:包含了SSID, 信号强度值
引用
C:\Users\Leyond\Desktop\wlan\autoconfig\Debug>wlsample gvl 7b17a851-3a3f-4c2e-be
4e-a35670cb1212
Total 1 networks are visible.
Network 0:
SSID: IPv6Lab_AP61
Security not enabled.
Contains 1 BSSIDs.
Currently connected.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 70%
Default authentication algorithm: "Open"
Default cipher algorithm: "None"
Command "gvl" completed successfully.
4e-a35670cb1212
Total 1 networks are visible.
Network 0:
SSID: IPv6Lab_AP61
Security not enabled.
Contains 1 BSSIDs.
Currently connected.
The network is connectable.
BSS type: "Infrastructure"
Signal quality: 70%
Default authentication algorithm: "Open"
Default cipher algorithm: "None"
Command "gvl" completed successfully.
连接某个网络:(这里不适用connect,是因为本机测试时无法获取接口的profile,所有使用discovery)
引用
C:\Users\Leyond\Desktop\wlan\autoconfig\Debug>wlsample disc 7b17a851-3a3f-4c2e-b
e4e-a35670cb1212 IPv6Lab_AP61 i u
Command "disc" completed successfully.
e4e-a35670cb1212 IPv6Lab_AP61 i u
Command "disc" completed successfully.
断开网络连接连接:
引用
C:\Users\Leyond\Desktop\wlan\autoconfig\Debug>wlsample dc 7b17a851-3a3f-4c2e-be4
e-a35670cb1212
Command "dc" completed successfully.
e-a35670cb1212
Command "dc" completed successfully.
附件有编译好的可执行文件。
附上所有命令详细格式:
引用
Command: EnumInterface(ei)
Description: Enumerate wireless interfaces and print the basic interface information.
Usage: EnumInterface(ei)
Command: GetInterfaceCapability(gic)
Description: Get the capability of an interface.
Usage: GetInterfaceCapability(gic) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: QueryInterface(qi)
Description: Query the basic information of an interface.
Usage: QueryInterface(qi) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetRadioState(srs)
Description: Set the software radio state.
Usage: SetRadioState(srs) <interface GUID> <on|off>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetDriverStatistics(gds)
Description: Get driver statistics.
Usage: GetDriverStatistics(gds) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Scan(scan)
Description: Scan for available wireless networks.
Usage: Scan(scan) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetBssList(gbs)
Description: Get the list of BSS.
Usage: GetBssList(gbs) <interface GUID> [<SSID> <infrastructure(i)|adhoc(a)> <secure(s)|unsecure(u)>]
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetVisibleNetworkList(gvl)
Description: Get the list of visible wireless networks.
Usage: GetVisibleNetworkList(gvl) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetProfile(sp)
Description: Save a profile.
Usage: SetProfile(sp) <interface GUID> <profile XML file name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SaveTempProfile(stp)
Description: Save the temporary profile used for the current connection.
Usage: SaveTempProfile(stp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetProfile(gp)
Description: Get the content of a saved profile.
Usage: GetProfile(gp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: DeleteProfile(dp)
Description: Delete a saved profile.
Usage: DeleteProfile(dp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetProfileList(spl)
Description: Set the preference order of saved profiles. The list must contain all profiles.
Usage: SetProfileList(spl) <interface GUID> <profile name>+
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetProfileList(gpl)
Description: Get the list of saved profiles, in the preference order.
Usage: GetProfileList(gpl) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Connect(conn)
Description: Connect to a wireless network using a saved profile.
Usage: Connect(conn) <interface GUID> <SSID> <infrastructure(i)|adhoc(a)> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Disconnect(dc)
Description: Disconnect from the current network.
Usage: Disconnect(dc) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Discover(disc)
Description: Connect to a network without a saved profile. The WLAN service will discover the settings for connection.
Usage: Discover(disc) <interface GUID> <SSID> <infrastructure(i)|adhoc(a)> <secure(s)|unsecure(u)>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: RegisterNotif(r)
Description: Register ACM and MSM notifications.
Usage: RegisterNotif(r)
Command: help(?)
Description: Print this help message.
Usage: help(?) [<command>]
Here is a basic example of how you can use this tool, once the Wireless Zero Configuration service has been started.
Description: Enumerate wireless interfaces and print the basic interface information.
Usage: EnumInterface(ei)
Command: GetInterfaceCapability(gic)
Description: Get the capability of an interface.
Usage: GetInterfaceCapability(gic) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: QueryInterface(qi)
Description: Query the basic information of an interface.
Usage: QueryInterface(qi) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetRadioState(srs)
Description: Set the software radio state.
Usage: SetRadioState(srs) <interface GUID> <on|off>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetDriverStatistics(gds)
Description: Get driver statistics.
Usage: GetDriverStatistics(gds) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Scan(scan)
Description: Scan for available wireless networks.
Usage: Scan(scan) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetBssList(gbs)
Description: Get the list of BSS.
Usage: GetBssList(gbs) <interface GUID> [<SSID> <infrastructure(i)|adhoc(a)> <secure(s)|unsecure(u)>]
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetVisibleNetworkList(gvl)
Description: Get the list of visible wireless networks.
Usage: GetVisibleNetworkList(gvl) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetProfile(sp)
Description: Save a profile.
Usage: SetProfile(sp) <interface GUID> <profile XML file name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SaveTempProfile(stp)
Description: Save the temporary profile used for the current connection.
Usage: SaveTempProfile(stp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetProfile(gp)
Description: Get the content of a saved profile.
Usage: GetProfile(gp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: DeleteProfile(dp)
Description: Delete a saved profile.
Usage: DeleteProfile(dp) <interface GUID> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: SetProfileList(spl)
Description: Set the preference order of saved profiles. The list must contain all profiles.
Usage: SetProfileList(spl) <interface GUID> <profile name>+
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: GetProfileList(gpl)
Description: Get the list of saved profiles, in the preference order.
Usage: GetProfileList(gpl) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Connect(conn)
Description: Connect to a wireless network using a saved profile.
Usage: Connect(conn) <interface GUID> <SSID> <infrastructure(i)|adhoc(a)> <profile name>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Disconnect(dc)
Description: Disconnect from the current network.
Usage: Disconnect(dc) <interface GUID>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: Discover(disc)
Description: Connect to a network without a saved profile. The WLAN service will discover the settings for connection.
Usage: Discover(disc) <interface GUID> <SSID> <infrastructure(i)|adhoc(a)> <secure(s)|unsecure(u)>
Remarks: Use EnumInterface (ei) command to get the GUID of an interface.
Command: RegisterNotif(r)
Description: Register ACM and MSM notifications.
Usage: RegisterNotif(r)
Command: help(?)
Description: Print this help message.
Usage: help(?) [<command>]
Here is a basic example of how you can use this tool, once the Wireless Zero Configuration service has been started.
- WLAN.zip (80.2 KB)
- 下载次数: 57
发表评论
-
Filter驱动:过滤(修改)接受数据包
2010-04-20 16:18 9222Filter驱动可以实现简单的防火墙功能。它可以过滤所有接收到 ... -
Ndis过滤驱动:拷贝NetBufferList数据
2010-04-19 22:40 9459今天我们来看看如何拷贝NBL中的数据。有时候需要更改数据包中的 ... -
在Filter驱动内核中获取IP地址
2010-04-18 01:48 3852项目开发中有时候需要在Filter驱动中获取有效地Unic ... -
如何在内核中获得当前系统时间
2010-04-16 15:08 2663在 Windows NT 内核中你是无法使用 tim ... -
Filter发送自定义数据详解
2010-04-16 10:30 5691... -
DebugPrint 格式说明符
2010-04-13 19:46 17321) 直接打印字符串。 DbgPrint(“Hello ... -
WDK+Visual Studio 2008配置编译驱动
2010-04-12 23:36 5523Introduction As it is known, ... -
疑问:关于内存释放
2010-04-12 21:33 1412今天碰到一个比较棘手的内存处理问题。 首先来看一个数据结构: ... -
Windows NT 驱动程序开发人员提示 -- 应注意避免的事项
2010-04-10 11:32 2293原讨论链接: http://community.cs ... -
关于DeviceIoControl实现异步的笔记【2】
2010-04-09 23:17 5049前面我们谈到了关于异步I/O的实现:关于DeviceIoCon ... -
关于DeviceIoControl实现异步的笔记【1】
2010-04-08 22:26 11641一直所做的都是同步实现的。当然很多情况这并不是很好的解决问题。 ... -
驱动和应用层的异步通信
2010-04-08 20:55 5348作 者: sislcb时 间: 2008-01-28,11:1 ... -
Windows系统编程之异步I/O和完成端口
2010-04-08 19:40 2229一、 同步I/O和异步I/O ... -
纵横捭阖C++之从异步谈起
2010-04-08 19:31 3148一般来说,简单的异步(Asynchronous)调用是这样一种 ... -
使用DeviceIoControl通信
2010-04-04 22:53 7854在很多时候,某些用户需要与底层驱动有一个交互式的操作,所 ... -
在驱动中使用链表
2010-04-03 14:06 3247文章作者:grayfox 作 ... -
疑问:数据包Length增大的原因
2010-04-01 14:35 1332现象: 自己定义一个仅含有Ethernet Header的数 ... -
疑问:为何无线网卡无法发送数据?
2010-03-30 22:42 4490所有的测试流程表明,程序已经成功的创建新的数据包,然后调用Nd ... -
InsertHeadList和CONTAINING_RECORD
2010-03-29 16:36 3723LIST_ENTRY定义一个双向链表的数据结构: typed ... -
如何区分不同的Filter Module Instance
2010-03-29 14:50 1511前文 说到如何区分不同Filter Module Inst ...
相关推荐
无线网络管理细则,规定和一系列的措施。公司无线网线网络的管理办法。
无线网络管理工具无线网络管理工具 无线网络管理工具 无线网络管理工具 无线网络管理工具
便于管理自己的无线网络,加强无线网络的搜集和管理。
无线 无线管理器 无线网卡 驱动 rt73
为规范无线网络的使用,防止在无管理、无防护的状态下使用WIFI无线网络造成单位敏感信息泄露、重要数据损坏、网页劫持、电脑病毒感染、业务系统被非法控制等严重后果,保障无线网络的正常运行,加强单位网络环境安全...
java写的无线网络管理程序,有需要的朋友可以看看
无线网络管理策略分析
令人高兴的是,此工具也支持Win2000,众所周知,Win2000没有WinXP那样内置无线网络管理工具,在Win2000下使用无线网卡,必须安装各种无线厂商的无线管理软件,有时侯还不一定找得到。不过,有了Wifi Hopper就方便多...
学习zigbee组网的技术,是一个pdf稳定,里边有部分代码,是zigbee组网技术不错的文档。
不知道大家有没有这个困扰,有一个带有无线网卡的笔记本电脑,家里也有宽带,但是没有路由器,所以其他的电脑就上不了网了。此软件可以使笔记本当路由器来用,完美解决网的问题。 首先打开该软件,选第一项。输入...
无线网络监测 无线网络管理工具无线网络监测 无线网络管理工具无线网络监测 无线网络管理工具
随着无线局域网络的普及,用户对无线网络的管理提出了新的需求。一套有效的WLAN管理软件,可以使WLAN的性能最大化、安全性更强。首先分析了WLAN当前存在的安全问题和管理问题,在此基础上,提出一套完整的无线局域网...
校园网无线网络管理与应用优化.pdf校园网无线网络管理与应用优化.pdf校园网无线网络管理与应用优化.pdf校园网无线网络管理与应用优化.pdf校园网无线网络管理与应用优化.pdf校园网无线网络管理与应用优化.pdf
网络游戏-无线网络管理方法、无线网络管理装置及智能终端.zip
令人高兴的是,此工具也支持Win2000,众所周知,Win2000没有WinXP那样内置无线网络管理工具,在Win2000下使用无线网卡,必须安装各种无线厂商的无线管理软件,有时侯还不一定找得到。不过,有了Wifi Hopper就方便多...
无线网络技术,主要在无线网络的应用和管理方面,实用性很强.
如何选择最好的无线网络管理软件、管理无线网络的软件、无线局域网管理软件.doc
利用My WiFi无线网络管理工具实现无线共享上网.doc
无线网络管理软件,局域网内可以直接搜索ip于mac地址,能够方便的管理无线Ap
一种无线网络管理系统方案设计.docx一种无线网络管理系统方案设计.docx