Henrik,
I would use the classes in the System.Management namespace to select all
instances of the Win32_NetworkAddress class. Once you get all instances of
that, you can check the MACAddress property to get the MAC address of the
network adapter. Remember, these are WMI classes, not .NET classes.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Henrik Dahl" <He********@community.nospam> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
Hello!
The getmac.exe program under Windows XP lists the MAC adresses of the
physical network cards. How may I obtain these MAC addresses using .NET?
Best regards,
Henrik Dahl