I need to be able to lookup the type of CPU that my application is running from a .NET Compact Framework application. Basically, I need to know if I'm on an ARM, SH4, x86, etc processor.
R – Lookup CPU type in .NET Compact Framework
compact-frameworkcpu
Best Answer
You can get this information from the GetSystemInfo API call:
Running on the emulator, dwProcessorType returns 2577, which as I recall is the ID of the ARM processor, so this will work (although you'll need to dig up which values refer to which processors).
You'll need this using directive for the above code to work, of course: