D dm_dal Jul 12, 2004 #1 Does the framework provide a way to obtain the application users MAC Address? David Young
D dm_dal Jul 12, 2004 #2 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 Click to expand... win32_networkadapterconfiguration shoud solve your problem.
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 Click to expand... win32_networkadapterconfiguration shoud solve your problem.
J John Young Jul 12, 2004 #3 Take a look at Windows Management Instrumentation (WMI) It's pretty easy to get a lot of information from.. HTH John Young
Take a look at Windows Management Instrumentation (WMI) It's pretty easy to get a lot of information from.. HTH John Young