How unique is the ethernet network adapter ID in WinRT? It is derived from the Mac address? [closed]

谁说我不能喝 提交于 2021-02-10 06:11:37

问题


How unique is the ethernet network adapter ID in WinRT? It is derived from the Mac address?

IReadOnlyCollection<Windows.Networking.Connectivity.ConnectionProfile> profiles =            Windows.Networking.Connectivity.NetworkInformation.GetConnectionProfiles();

Windows.Networking.Connectivity.NetworkAdapter na = profiles.First<Windows.Networking.Connectivity.ConnectionProfile>().NetworkAdapter;

string nid =  na.NetworkAdapterId.ToString();

回答1:


No, the NetworkAdapterId value is a GUID and has nothing to do with the machine MAC address. You cannot get the MAC adress of the computer through WinRT APIs exposed for the Windows Store application type.



来源:https://stackoverflow.com/questions/12936193/how-unique-is-the-ethernet-network-adapter-id-in-winrt-it-is-derived-from-the-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!