MAC Address?

D

dm_dal

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

David Young
 
D

dm_dal

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.
 
J

John Young

Take a look at Windows Management Instrumentation (WMI)
It's pretty easy to get a lot of information from..

HTH

John Young
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top