日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

為什麼system32中放的是64位dll,syswow64中放的是32位dll

發布時間:2023/12/20 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 為什麼system32中放的是64位dll,syswow64中放的是32位dll 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

轉載自:

http://cncc.bingj.com/cache.aspx?q=syswow64+system32+differenece&d=4721794509439110&mkt=en-US&setlang=en-US&w=DI2qviw609tjOQYxCwxoKnALrhb4APj-

摘取其中重要的兩段:

1System32?and?SysWOW64

On a 32-bit computer, all 32-bit programs store their files in C:\Program Files, and the system-wide library location is C:\System32.

On a 64-bit computer, 64-bit programs store their files in C:\Program Files, and the system-wide?C:\Windows\System32?folder contains 64-bit libraries. 32-bit programs store their files in C:\Program Files (x86), and the system-wide folder is C:\Windows\SysWOW64.

This is definitely counterintuitive. Despite the “32” in the name, the?System32?folder contains 64-bit libraries. And, despite the 64 in the name, the?SysWOW64?folder contains 32-bit libraries—at least on 64-bit versions of Windows.

In general, you won’t need to know this. The Windows operating system and programs you use automatically place their files in the correct location and use the correct folder. However, if you ever need to manually install a DLL file in the correct location or find where one is installed—which is very rare—you’ll need to know which is which.

#############################################################################################

So Why Is?System32?64-bit, and?SysWOW64?32-bit?

All that brings us back to the million-dollar question: Why is the “System32” folder 64-bit, and?SysWOW64?32-bit?

The answer seems to be that many 32-bit applications were hardcoded to use the C:\Windows\System32?directory. When developers recompiled these applications for 64-bit versions of Windows, they continued to use the C:\Windows\System32?directory.

Rather than renaming the directory and forcing developers to move to the new one, breaking many applications in the process, Microsoft left “System32” as the standard system library directory. They created a new library directory for applications running under the WoW64 layer, which they named “SysWOW64”. When you think about it this way, the name makes more sense.

?

大意是:

32位程序裡面“C:\Windows\System32”是寫死的,為了重編譯到64位時省事,就索性決定讓system32位裡面的dll都是64位的

言外之意就是:32->64位時,懶得改,導致system32為了滿足開發習慣,都是放置的64位的dll

總結

以上是生活随笔為你收集整理的為什麼system32中放的是64位dll,syswow64中放的是32位dll的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。