Click here to Skip to main content
15,867,906 members
Articles / Mobile Apps
Tip/Trick

What processor is in my mobile device?

Rate me:
Please Sign up or sign in to vote.
4.00/5 (5 votes)
28 Oct 2010CPOL 11.4K   2   1
Ever wanted to know what your clock-speed was or what brand/model processor you had in your Windows Mobile device?

If you have Platform Builder, then include pkfuncs.h. If not, then do some Internet searching for the definitions you need.

DWORD returned = 0;
PROCESSOR_INFO pi = { 0 };
if( ::KernelIoControl( IOCTL_PROCESSOR_INFORMATION, 
                       NULL, 
                       0, 
                       &pi, 
                       sizeof( PROCESSOR_INFO ), 
                       &returned ) )
{
    NKDbgPrintfW( L"%s, %s - %s, %d MHz\r\n", 
        pi.szProcessCore, 
        pi.szVendor, 
        pi.szProcessorName, 
        pi.dwClockSpeed );
}


For me, this prints:
ARM Cortex-A8, TI - OMAP3, 600 MHz


Enjoy!

-PaulH

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) An engineering firm in Cedar Rapids, Iowa
United States United States
I'm also on the MSDN forums
http://social.msdn.microsoft.com/profile/paulh79

Comments and Discussions

 
GeneralReason for my vote of 1 no i haven't Pin
hamilton1232-Nov-10 10:55
hamilton1232-Nov-10 10:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.