How to bypass registry reflection (Wow6432Node)?

依然范特西╮ 提交于 2019-12-02 15:11:35

问题


I want to extract certain information from the registry but since my script is running inside a 32-bit engine, it will extract information only from the Wow6432Node for certain keys. Is there a way to bypass registry reflection and read from both

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft

and

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft

?

I just want to read the values from the keys, not update it.

Thank you.


回答1:


You can read and write specifically to the 32 or 64 bit views of the registry by passing different flags to the RegOpenKeyEx/RegCreateKeyEx functions: KEY_WOW64_64KEY and KEY_WOW64_32KEY



来源:https://stackoverflow.com/questions/4110543/how-to-bypass-registry-reflection-wow6432node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!