Hi, experts
How can I get some information about my LAN card?
this information is important for me. Please tell me how.
Printable View
Hi, experts
How can I get some information about my LAN card?
this information is important for me. Please tell me how.
Moved from the CodeBank
You can use WMI to get information about your network adapter:
PHP Code:ManagementObjectSearcher objQuery = new ManagementObjectSearcher("SELECT * FROM Win32_NetworkAdapterConfiguration");
foreach (ManagementObject objMO in objQuery.Get())
if ((bool) objMO["IPEnabled"] && objMO["MacAddress"] != null)
MessageBox.Show ((string) objMO["Description"] + " - " + (string) objMO["MacAddress"]);
another easier way?
I dont know exactly a way that use Network namespace to solution this problem.
Any idea?