microsoft / wil

Windows Implementation Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing 32-bit registry view from 64-bit process

Brainy0207 opened this issue · comments

Some keys in the registry are redirected for 32-bit and 64-bit processes.
Is there a way to access the 32-bit view of the registry from a 64-bit process (and vice versa) using the wil helpers?

Usually you would specify KEY_WOW64_32KEY or KEY_WOW64_64KEY when opening the key:
https://learn.microsoft.com/en-us/windows/win32/winprog64/accessing-an-alternate-registry-view