Click here to Skip to main content
15,882,113 members
Articles / Mobile Apps

Getting Processor architecture in x86 and x64 bit platform.

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
19 Oct 2010CPOL 10.5K   2  
I found this at Microsoft MSDN somewhere. The Code is C#, but should be easy to port to C++.[DllImport("kernel32")] private static extern IntPtr GetModuleHandle(string lpModuleName);[DllImport("kernel32")] private static extern int GetProcAddress(HANDLE hModule, string...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
12 Oct 2010Sarath C 1 alternative  
GetSystemInfo provides the basic system information and processor architecture of the underlying platform. This API can be used successfully in both x64 and x86 platform. But, under 64-bit WIndows, we can run 32 bit Applications( WOW64). If a WOW64 process call GetSystemInfo API, it will return the

License

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


Written By
Architect STZ Rechnereinsatz, Esslingen
Germany Germany
Studied Computer Science at the University of Stuttgart (specialized in Software Engineering and Computer Graphics), went through lots of Languages (Java, Modula, Prolog, Lisp, Basic, Smalltalk, VB, C#, C++ and even Assembler for the beloved 6502, 68000 and HP 9000 RISC), now grown up to a classic System- and Software-Architect Smile | :)

Comments and Discussions