在 Windows 10 中调用 WiFi 连接 UI [英] Invoking the WiFi connections UI in Windows 10

查看:46
本文介绍了在 Windows 10 中调用 WiFi 连接 UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 10 之前,可以使用适当的 GUID/字符串通过 ShellExecute 调用 WiFi 连接 UI,其详细信息可以在网络上很容易地找到.这在 Windows 10 中发生了变化.虽然有一个 API 可用于以编程方式管理 WiFi 连接(本机 WiFi),甚至在 CodePlex 上还有一个 C# 包装器,但我必须围绕它构建自己的 UI;我找不到有关如何启动现有 Windows 10 UI 以管理 WiFi 连接的任何信息.我宁愿不必构建自己的已存在功能副本,因为现有功能无法以编程方式调用.

Prior to Windows 10, the WiFi connections UI could be invoked via a ShellExecute using the appropriate GUIDs/strings, details of which can be fairly easily found on the web. This changed in Windows 10. Although there is an API which can be used to programmatically manage WiFi connections (Native WiFi), and there is even a C# wrapper for it on CodePlex, I'd have to build my own UI around it; I can't find any information on how to launch the existing Windows 10 UI for managing WiFi connections. I'd rather not have to build my own duplicate of functionality which already exists just because the existing functionality can't be invoked programmatically.

不是公开曝光的吗?如果它是可调用的,它是如何完成的?只是不同的 ShellExecute 吗?

Is it not publicly exposed? If it is callable, how is it done? Is it just a different ShellExecute?

推荐答案

可用网络的 Uri 是 ms-availablenetworks:

The Uri for the available networks is ms-availablenetworks:

所以只需在您的代码中使用它:

So just use this in your code:

var success = await Windows.System.Launcher.LaunchUriAsync(new Uri(@"ms-availablenetworks:"));

这篇关于在 Windows 10 中调用 WiFi 连接 UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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