TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Program Files (x86) and SysWOW64 folders explained

17 pointsby datamoshrover 3 years ago

5 comments

colejohnson66over 3 years ago
&gt; 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.<p>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?
tinus_hnover 3 years ago
&gt; you should always install files with a specific bitness to the correct Program Files folder.<p>I’m pretty sure there’s some API or environment variable to tell you where to install files. Instead of codifying the past yet again.
评论 #29112253 未加载
4oo4over 3 years ago
Another fun caveat to this that&#x27;s extremely poorly documented:<p>If you have a 32-bit process that needs to be redirected into the 64-bit namespace, you have to use C:\Windows\sysnative. The folder only exists when you use 32-bit cmd.<p><a href="https:&#x2F;&#x2F;www.samlogic.net&#x2F;articles&#x2F;sysnative-folder-64-bit-windows.htm" rel="nofollow">https:&#x2F;&#x2F;www.samlogic.net&#x2F;articles&#x2F;sysnative-folder-64-bit-wi...</a>
Szpadelover 3 years ago
&gt; 64-bit computer with a 64-bit Windows can handle so much RAM memory as 192 GB!<p>Can anyone explain from where this number comes from?<p>on 32bits you can address 4GiB, but using 64bits you are able to address 16EiB 38bits is enough to address 256GiB so 192GiB doesn&#x27;t look like any technical limitation
评论 #29113088 未加载
mixmastamykover 3 years ago
Just remember MS names everything bass-ackwards and it all makes sense. Or incredibly verbose bordering on insane... &quot;Documents and Settings&quot; anyone? How about no permissions implemented but &quot;Don&#x27;t look in here&quot; banners in Explorer. :-D