I would like to be able to determine my PocketPC's MAC address from an eMbedded VC++ application. It seems to be a tough thing to do in general, though I've found the SNMP method and it works fine on my desktop Visual Studio .NET, however, I can't get it to compile on my PocketPC because I don't have snmp.h or the .lib in my development tools (whether its just not installed, or it just doesn't work on PocketPC, I don't know).
Does anyone have an idea as to an easy way to get the MAC address? Even if its not easy, but possible, I'd still be willing to try..
Thanks,
ryanc
Boy, wouldn't that make warez protection easy if we could get the MAC address of a PocketPC.
Problem is that the MAC address is (obviously) only available on NICs... and it'll probably depend on what the ethernet card's driver supports.
Have a look and see what the ethernet driver interface is supposed to support, maybe?
refractor wrote:
Have a look and see what the ethernet driver interface is supposed to support, maybe?
Well, I could get it with GetAdaptersInfo easily, except I need Iphlpapi.lib and Iphlpapi.h which didn't come with my embedded visual tools or my pocketpc SDK. Iphlpapi.lib is supposed to work on Windows CE OS 3.0 and later, according to MSDN, but I have no idea where to get them. Any ideas?
you could download the windows ce 3.0 source and see if it is included in that package.
I don't remember seeing any network stack source in the Pocket PC source. Basically all MS released was the kernel sources.
Dan East