Check if unmanaged DLL is 32-bit or 64-bit?

后端 未结 5 1725
一生所求
一生所求 2020-11-30 21:47

How can I programmatically tell in C# if an unmanaged DLL file is x86 or x64?

5条回答
  •  一整个雨季
    2020-11-30 22:12

    Using a Visual Studio command prompt, dumpbin /headers dllname.dll works too. On my machine the beginning of the output stated:

    FILE HEADER VALUES
    8664 machine (x64)
    5 number of sections
    47591774 time date stamp Fri Dec 07 03:50:44 2007
    

提交回复
热议问题