The function to call is IsWow64Process
or IsWow64Process2
. It tells your 32-bit application if it is running on a 64 bit Windows.
If the program is compiled for 64 bits, it will already know.
More Related Contents:
- HOW to understand custom drawn ? Which tools can I use? [closed]
- How to debug heap corruption errors?
- Qt5 Static Build yields Failed to load platform plugin “windows”
- MSVCP140.dll missing
- How to Detect the Number of Physical Processors / Cores on Windows, Mac and Linux
- Exporting a C++ class from a DLL
- What is the proper OpenGL initialisation on Intel HD 3000?
- C++ system() not working when there are spaces in two different parameters
- Sharing a global/static variable between a process and DLL
- How to deploy a Qt application on Windows?
- What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?
- When including header files, is the path case sensitive?
- C++ Windows – How to get process path from its PID
- Can the “Application Error” dialog box be disabled?
- Using CreateWindowEx to Make a Message-Only Window
- Difference between ‘strcpy’ and ‘strcpy_s’?
- Windows Unicode C++ Stream Output Failure
- Detecting simulated keyboard/mouse input
- Best method for storing this pointer for use in WndProc
- How can I save HICON to an .ico file?
- Is there a way to get the string representation of HRESULT value using win API?
- How do I use the MinGW gdb debugger to debug a C++ program in Windows?
- Fatal error: “No Target Architecture” in Visual Studio
- What is the COMDAT section used for?
- Passing reference to STL vector over dll boundary
- Getting another process command line in Windows
- Visual Studio 2013: CL.exe exited with code -1073741515
- C++: What’s the simplest way to read and write BMP files using C++ on Windows?
- How to send keystrokes to a window?
- How can I cin and cout some unicode text?