How to detect that a given PE file (exe or dll) is 64 bit or 32 bit

后端 未结 2 1152
既然无缘
既然无缘 2020-12-09 21:34

I need to detect whether a given .dll or .exe file is 32 bit or 64 bit

At the moment I have only one solution: read the PE Header from the specified file and take th

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 22:06

    GetBinaryType(...) returns SCS_32BIT_BINARY for a 32-bit Windows-based application and SCS_64BIT_BINARY for a 64-bit Windows-based application.

提交回复
热议问题