32bit application access to 64bit registry

32-bit64-bitbatch-filex86

I have an OS Shell written in 32bit that is replacing the Explorer.exe of a Vista machine.
I run a utility which is also written in 32bit, which allows to switch between the Explorer shell and My shell. With some of the machines being 64bit based I can not Alter the HKLM\Microsoft\current\shell Key (short formed reg key). I end up getting intercepted by the WOW64 subkey redirection.. and effectively the changes to the shell key do not take place. Microsofts BS about realtime Redirection is not exactly true. That is one key that does not redirect unless you restart the whole-machine.

So I am looking for a solution to Either UPDATE that redirected key and have it load.

The Shell replacement is a Point of Sales software. My GUI utility will run 32bit command prompts only or batch files run as 32bit..

Can I Execute or call another batch file like a 64bit from a 32bit ?

Best Answer

Check out MSDN for details on how to access the exact hive you want

The KEY_WOW64_64KEY and KEY_WOW64_32KEY flags enable explicit access to the 64-bit registry view and the 32-bit view, respectively.

Related Topic