问题描述
我正在为我的UI使用Vista 802.11自动配置API. (Vista Beta 2,内部版本5308)
I am working with the Vista 802.11 Auto Configuration APIs for my UI. (Vista Beta 2, Build 5308)
当我使用参数bOverWrite = TRUE调用WlanSetProfile()时,我的XML配置文件如下所示,API返回1168,找不到元素.但是,API输出的原因码为操作成功".
When I call WlanSetProfile() with the parameter, bOverWrite = TRUE, and my XML profile is as following, the API returns 1168, Element not Found. But the Reason Code output by the API is "The operation succeeds".
而且,当我使用bOverWrite = FALSE调用此API时,该API返回87,ERROR_INVALID_PARAMETER.
And, when I call this API with bOverWrite=FALSE, the API returns 87, ERROR_INVALID_PARAMETER.
我的XML配置文件格式不正确吗?还是已准备好使用此API?
Is my XML profile format incorrect? Or Is this API ready to be used or not?
对此问题有任何建议或想法吗?感激!
Any suggestions or ideas for this issue? Appreciate!
<?xml version ="1.0"?>
< WLANProfile xmlns = >
<名称>配置文件测试</名称>
< SSIDConfig>
< SSID>
<名称>个人资料测试</名称>
</SSID>
< nonBroadcast>错误</nonBroadcast>< BR>< nsp ;/SSIDConfig>
< connectionType> ESS</connectionType>
< connectionMode>手册</connectionMode>
< MSM>
< security>
< authEncryption< BR> " authentication> < encryption" none</encryption< BR> sp; < useOneX> false</useOneX>
//authEncryption>
</security> </MSM>
</WLANProfile>
<?xml version="1.0"?>
<WLANProfile xmlns=http://www.microsoft.com/networking/WLAN/profile/v1>
<name>Profile TEST</name>
<SSIDConfig>
<SSID>
<name>Profile TEST</name>
</SSID>
<nonBroadcast>false</nonBroadcast>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>manual</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>open</authentication>
<encryption>none</encryption>
<useOneX>false</useOneX>
</authEncryption>
</security>
</MSM>
</WLANProfile>
推荐答案
你好,burton_doggy,
Hi burton_doggy,
我认为您的xml配置文件中没有错.我成功创建了xml配置文件,并且能够使用相同的vista构建也可以连接到ssid.请检查您的代码,句柄和您的登录用户.由于从本机wifi权限文档开始,默认情况下,只有管理员组和网络配置程序组的用户才能调用Auto config API.检查您的权限.API也成功适用于WEP和802.1x协议.我想知道任何人都可以通过无线软件无线电控制(开和关)获得成功.微软的一份文件说,相同的自动配置api可以用于以太网配置文件.任何人都成功了.请让我知道.您还可以使用最新的beta2 vista构建5384.所有api都可以使用该版本.一切顺利.
i think nothing wrong in your xml profile. I successfully created xml profile and can able to connect to ssid also using same vista build. Please check your code, handle and your login user. Because as of Native wifi permission document, only users from administrators group and Network configurators group can invoke Auto config API's without fail by default. Check your permissions.API's are successfully working for WEP and 802.1x protocols also. I would like to know anybody is succeeded with wlan software radio control( ON and OFF). One of Microsoft document says same Auto config api's will work for ethernet profiles. Anybody succeeded with that. please let me know. You can also work with recent beta2 vista build 5384. All api's are working with that. All the best.
这篇关于WlanSetProfile()返回“找不到元素".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!