Click here to Skip to main content
13,044,282 members (126,641 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 19 Oct 2010

Getting Processor architecture in x86 and x64 bit platform.

, 19 Oct 2010
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...


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

12 Oct 2010
Sarath 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


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


About the Author

Nenad L.
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 | :)

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 19 Oct 2010
Article Copyright 2010 by Nenad L.
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid