I need to get the MAC address of a Windows Mobile device. Is it possible to do this without using, say, OpenNetCF, only by .NET Compact Framework? The solution is in C# (Visual Studio 2008, a smart device project).
Having read Read MAC Address from network adapter in .NET, I wanted to use the example by plinth, but there was no kernel32.dll on the device.
Is there aother way to get the MAC address in .NET Compact Framework, or how could I replace the following methods:
[DllImport("Kernel32.dll", EntryPoint = "CopyMemory")]
private static extern void ByteArray_To_IPAdapterInfo(ref AdapterInfo dst, Byte[] src, int size);
[DllImport("Kernel32.dll", EntryPoint = "CopyMemory")]
private static extern void IntPtr_To_IPAdapterInfo(ref AdapterInfo dst, IntPtr src, int size);