Click here to Skip to main content
15,793,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
ManagementObjectSearcher query = new ManagementObjectSearcher(
            "SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'TRUE'");
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900