I am writing a program that works with the registry.

I am recording the data here: "Software \ my-firm". Previously, and wrote. Now he writes in "SOFTWARE \ Wow6432Node \ my-firm". This is a WOW64 redirection.

What happened - I do not even understand ... I did not do anything like that. How to disable it?

  • 2
    But does it make sense to disconnect if this redirection is transparent for both the user and the developer? If you do not plan to create two (x32 and x64) versions of the program that use the same settings, then leave it as it is. - teran

1 answer 1

In 64-bit Windows, the registry is divided into two logical "sub-registers" transparently for the user (programmer) - for 32-bit programs and 64-bit programs. Obviously, just recompile your application under x64. Or use RegDisableReflectionKey from WinAPI.

More details.

  • I'm already compiling a Win32 application - sitev_ru
  • 2
    redirects wow64, take place to be like when on a 64-bit platform 32 bit application is used. So it is more likely to compile then vice versa under x64. - teran
  • @sitev_ru ^^^^^ Pavel Mayorov
  • @teran, you are absolutely right, under Win64, of course - updated answer - AseN
  • @PavelMayorov The author of the post always sees all the notifications. - teran