Determine the CPU type/Emulator or Device

  • Thread starter Thread starter Zanna
  • Start date Start date
Z

Zanna

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!
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top