hi evey one,
i want mac address in windows 7
code i written to getmac address:
String NicCardAddress = null;
foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
{
if (nic.OperationalStatus == OperationalStatus.Up)
{
NicCardAddress = nic.GetPhysicalAddress().ToString();
break;
}
}
i am getting two addrress one for lan and another for wirless network,how i acn get only lan physical address