作者godsing (执着是苦)
看板C_Sharp
标题[问题] 请问Native Wifi的一连线函数问题
时间Thu May 6 23:18:08 2010
引用native wifi支後的连线方法 WlanConnect
四个参数
1. hClientHandle [in]
The client's session handle, returned by a previous call to the
WlanOpenHandle function.
2. pInterfaceGuid [in]
The GUID of the interface to use for the connection.
3. pConnectionParameters [in]
Pointer to a WLAN_CONNECTION_PARAMETERS structure that specifies the
connection type, mode, network profile, SSID that identifies the network, and
other parameters.
Windows XP with SP3 and Wireless LAN API for Windows XP with SP2: There are
some constraints on the WLAN_CONNECTION_PARAMETERS members. This means that
structures that are valid for Windows Server 2008 and Windows Vista may not
be valid for Windows XP with SP3 or Wireless LAN API for Windows XP with SP2.
For a list of constraints, see WLAN_CONNECTION_PARAMETERS.
4 pReserved
Reserved for future use. Must be set to NULL.
这是空我知道,但是为什麽要留空??
拜托了解的乡民解释一下各参数说明!!我真的不知道要带啥进去.....
它的第3段是指支援2008跟vista是吗?
还有简单的应用
我现在是用WLAN_AVAILABLE_NETWORK得到相关的wlan数据
我是不是从各个结构中去找出Connect需要的参数带进去就好?
但是我还是无从下手,总觉得看得好乱.....似懂非懂.....
WlanGetProfile这个profile到底是指什麽? 它里面有什麽?
WlanOpenHandle又是处里什麽的? 它的用处跟使用时机又是?
WlanScan是要搜寻什麽?
不是已经从WLAN_AVAILABLE_NETWORK跟WLAN_DSS_ENTRY就能得知相关资讯了吗? 是指更新吗?
希望有人能详细解说,有SAMPLE最好,因为网路上的都看不懂....
搞了很久才知道,原来要自己写native wifi难怪引用不了这个服务....
感谢解答!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.43.102.250
※ 编辑: godsing 来自: 114.43.102.250 (05/06 23:19)