积极答复者
请问:Win8 RT开发,可以用Native Wifi API吗?

问题
答案
-
Hi,
不支持,WinRT支持的API你可以在这里查到:
http://msdn.microsoft.com/library/windows/apps/br211369
你说的问题可以参考这个sample:
http://code.msdn.microsoft.com/windowsapps/Wi-Fi-hotspot-authenticatio-943569eb
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
全部回复
-
Hi,
不支持,WinRT支持的API你可以在这里查到:
http://msdn.microsoft.com/library/windows/apps/br211369
你说的问题可以参考这个sample:
http://code.msdn.microsoft.com/windowsapps/Wi-Fi-hotspot-authenticatio-943569eb
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
谢谢刚才的回答。
按说回答到这个地步(指出sample所在),已经是到位了,不过现在我试运行这个sample出现了一个故障,初学者不知道问题所在,请Aaron版主帮忙看看:
下载这个sample,调试运行的时候,点击“Provision”按钮,进入Initialization.xaml.cpp里面的ProvisionButton_Click过程,代码执行到
return provisioningAgent->ProvisionFromXmlDocumentAsync(provisioningXml);的时候,还是正常的;
按F5到达auto result = resultTask.get();的时候,再按F10单步运行,就报错了,提示:
First-chance exception at 0x749D277C in HotspotAuthenticationApp.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x02E8B3A0. HRESULT:0x8217000E 无法找到与此错误代码关联的文本。
WinRT 信息:XML 中缺少签名
如有适用于此异常的处理程序,该程序便可安全地继续运行。
请问,该怎么配置,让这个sample能正常运行?
-
Hi,
抱歉我回复迟了。
你可以参考:
http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/b1b43b4a-39dd-4ef8-8d5c-dc2381c9661c
里面有详细步骤。
Aaron
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
谢谢I'chTheI的回答。
照着Bob的解答把xml文件签名了,运行结果还是报一样的错:
HRESULT:0x82170002 WinRT 信息:XML 与设置架构不匹配
查询网络上对错误值的描述
0x82170001 (PROVCORE_E_XML_MALFORMED): XML is not well-formed
0x82170002 (PROVCORE_E_XML_INVALID): XML does not match the provisioning schema
0x82170003 (PROVCORE_E_XML_SIGNATURE_INVALID): XML signature is invalid
0x82170004 (PROVCORE_E_XML_SIGNATURE_UNTRUSTED): Signer certificate is not chained to a trusted root CA
0x82170005 (PROVCORE_E_XML_DIGEST_INVALID): XML has been tampered with
0x82170006 (PROVCORE_E_XML_SIGNER_UNTRUSTED): Signer certificate is not trusted for provisioning
0x82170007 (PROVCORE_E_NO_LEAF_CERT): No leaf certificate found in XML signature
0x82170008 (PROVCORE_E_INTERFACE_NOT_PROVISIONED): Interface is not provisioned0x82170002 是说xml文件不符合规范,但我用的xml是simple里面的,只修改了一些值。
------------------------------------
请问I'chTheI,你以前学习这个simple用的项目文件还在吗?如果找得到的话,把那个xml文件发给zhangshiluan@ruijie.com.cn一下,谢谢了