Why is SysWOW64 reported as System32?

僤鯓⒐⒋嵵緔 提交于 2019-12-29 09:34:04

问题


I am testing a Windows service. The service code fails when it tries to delete a read only file I created in %windir%\SysWOW64, but the exception that is logged is:

Access to the path 'C:\Windows\system32\CanvasImages\62230.jpg' is denied.

I know 64 bit Windows has a whole lot of tricks up its sleeve concerning these two folders, and understand a little of it, but some accurate exception info would be nice.


回答1:


It's a bit confusing, but SysWOW64 is actually the 32 bit emulator for 64 bit systems.

WOW stands for "Windows on Windows", and the original SysWOW was the 16 bit emulator for 32 Bit Windows (and should have been called SysWOW32). So SysWOW64 is the 32 bit emulator for 64 bit Windows.

So, when you run 32 bit applications, it uses SysWOW64 to emulate the 32 bit registry, and 32 bit redirection (to Program Files (x86) for instance).



来源:https://stackoverflow.com/questions/28942923/why-is-syswow64-reported-as-system32

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