How to Retrieve "Network Interfaces" in C#?
You may recognize the "network interfaces" as "Network and Dial-up Connections": You can access them by using "Start > Setting > Network and Dial-up Connections". C# does not provide a simple way of retrieving this list. The solution includes two main steps, which follow:
Step 1: Retrieve the Network AdaptersGet all the Network Adapters, which are IP-enabled, and their Setting ID. We use the ManagementClass: Win32_NetworkAdapterConfiguration to achieve this. The "SettingID" property of the ManagementObject is actually the Registry key.
Step 2: Extract information from the Registry
More...
http://www.codeguru.com/Csharp/Csharp/cs_network/internetweb/article.php/c6023/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment