MAC address in Compact Framework
问题 How can I get the MAC Address using only the compact framework? 回答1: 1.4 of the OpenNETCF code gets the information from the following P/Invoke call: [DllImport ("iphlpapi.dll", SetLastError=true)] public static extern int GetAdaptersInfo( byte[] ip, ref int size ); The physical address (returned as MAC address) I think is around about index 400 - 408 of the byte array after the call. So you can just use that directly if you don't want to use OpenNETCF (why though? OpenNETCF rocks more than