I am writing an application in 64 bit Windows-7. In registry I have a key to be read from the path:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\XXXX
I am first trying to open the key using the following code:
RegOpenKeyEx(HKEY_LOCAL_MACHINE, Path, 0, KEY_ALL_ACCESS, &hKey)
and after that I am able to read the values. This works fine on 64 bit Windows but does not work on 32 bit Windows. What should be done to read it on 32 bit Windows ?