microsoft / wil

Windows Implementation Library
MIT License
2.57k stars 234 forks source link

Accessing 32-bit registry view from 64-bit process #435

Open Brainy0207 opened 7 months ago

Brainy0207 commented 7 months ago

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