MAC Address?

  • Thread starter Thread starter dm_dal
  • Start date Start date
D

dm_dal

Does the framework provide a way to obtain the application users MAC
Address?

David Young
 
Thanks,
This is what I got. Seem's to work fine.

ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT * FROM
Win32_NetworkAdapterConfiguration");
ManagementObjectCollection queryCollection = query.Get();
foreach(ManagementObject mo in queryCollection)
{
if(mo["MacAddress"]!=null)
{
string macAddress = mo["MacAddress"].ToString();
txt1.Text += macAddress+ "\r\n";
}
}

David Young

ReinhardH said:
Hi David,

system.management (don't forget to make reference first) and
win32_networkadapterconfiguration shoud solve your problem.
 
Take a look at Windows Management Instrumentation (WMI)
It's pretty easy to get a lot of information from..

HTH

John Young
 
Back
Top