Click here to Skip to main content
12,453,672 members (86,918 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.5K views
2 bookmarked
Posted

Getting Processor architecture in x86 and x64 bit platform.

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

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

License

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

Share

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 | :)

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