获取已保存的网络配置文件列表 [英] Get list of saved network profiles

查看:135
本文介绍了获取已保存的网络配置文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Windows XP中获取已保存的网络配置文件的列表吗?我所保存的网络配置文件的意思是用户自动连接的网络,我知道您可以使用Windows API Codepack Network Manager API在Windows 7中完成此操作,但是我想知道如何在Windows XP中进行操作

Hi, does someone know how to get a list of saved network profiles in Windows XP? and what i mean by saved network profiles is the networks that user connects to automatically i know you can do it in Windows 7 using the Windows API Codepack Network Manager API, but i''d like to know how to do it in Windows XP

推荐答案

您可以使用WMI获得可用的网络连接. Windows Management Intrumatation(WMI)使查询Windows的系统和设备信息变得容易.而使用System.Management程序集则更容易.
例如.
You can get available network connections using WMI.
Windows Management Intrumatation (WMI) makes quering Windows for system and devices information easy. And this is even easier with System.Management assembly.
E.g.
ManagementObjectSearcher query = new ManagementObjectSearcher(
            "SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'TRUE'");


这篇关于获取已保存的网络配置文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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