Get user's Processor Speed

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Greetings,

How can I determine (via code) the processor speed (in Mhz if possible) of
the user's device?

Thanks,

-Dave
 
In general, there's no sure way to get that. OEMs aren't required to return
processor speed information to Windows CE. However, most implement
IOCTL_PROCESSOR_INFORMATION, which you can send with a KernelIoControl()
call, passing a PROCESSOR_INFO structure to be filled by the call. Get the
C SDK for your device and you should find the declarations. There's a
declaration of KernelIoControl already in OpenNETCF, so you shouldn't have
to work out the declaration for that, but you will have to properly declare
PROCESSOR_INFO.

Paul T.
 
Back
Top