You need to P/Invoke to the GetSystemInfo API, which returns the processor type. Better still you can make use of OpenNETCF.org's Smart Device Framewor
(
http://www.opennetcf.org/winapi.asp) that has the P/Invoked function ready to use. It returns the processor type in an enum (Core.ProcessorType). If the processor type is an X86 type you are running on the emulator, otherwise you are running on a device
Regards
Maarten Struys, eMV
PTS Software b
www.opennetcf.org |
www.dotnetfordevices.co
----- Zanna wrote: ----
Hi
I'd like to determine what is the CPU type used by a smart device
Also I want to know if I'm running on a real device or on the Emulator
Is it possible
Thanks