I discovered that I could solve my problem using the flag: KEY_WOW64_64KEY
, as in:
result = RegOpenKeyEx(key, s, 0, KEY_READ|KEY_WOW64_64KEY, &key);
For a full explanation: 32-bit and 64-bit Application Data in the Registry
More Related Contents:
- How to read a value from the Windows registry
- how to get process handle from process id?
- Getting CURRENT path to own executable (C++)
- How do I link to a library with Code::Blocks?
- Create registry entry to associate file extension with application in C++
- How to detect win32 process creation/termination in c++
- How do I programmatically get the version of a DLL or EXE file?
- Win32 programming hiding console window
- NetUIHWND and DirectUIHWND [closed]
- How do I redirect output to a file with CreateProcess?
- Keyboard Input & the Win32 message loop
- What happens when you close a c++ console application
- C++ Get Username From Process
- Creating a ZIP file on Windows (XP/2003) in C/C++
- Read process memory of a process does not return everything
- How to run application which requires admin rights from one that doesn’t have them [closed]
- How do I get the window handle of the desktop?
- How do I implement dragging a window using its client area?
- How to use WndProc as a class function [duplicate]
- How to enable visual styles without a manifest
- Determine path to registry key from HKEY handle in C++
- How large is a DWORD with 32- and 64-bit code?
- How to use the Windows API in MinGW?
- How to check if a process has the administrative rights
- Name of process for active window in Windows 8/10
- C++: What’s the simplest way to read and write BMP files using C++ on Windows?
- How do I guarantee fast shutdown of my win32 app?
- Windows Media Foundation recording audio
- How to get the path of an active file explorer window in c++ winapi
- How make FILE* from HANDLE in WinApi?