Hacker News new | ask | show | jobs
by colejohnson66 1694 days ago
> But what about 32-bit applications that have the system path hard coded and is running in a 64-bit Windows? How can they find the new SysWOW64 folder without changes in the program code, you might think. The answer is that the emulator redirects calls to System32 folder to the SysWOW64 folder transparently so even if the folder is hard coded to the System32 folder (like C:\Windows\System32), the emulator will make sure that the SysWOW64 folder is used instead. So same source code, that contains a path with the System32 folder included, can be compiled to both 32-bit and 64-bit program code without any changes.

This always rubbed me the wrong way. We can’t rename “System32” because it’ll break apps. So we intercept 32 bit apps into SysWOW64? Why not intercept 64 bit accesses to System32 and rewrite them to System64 or whatever?