Detects if a DLL file is x64 or x86

Source: Internet
Author: User
Tags comparison table

For a DLL, how do we determine whether it is 32-bit or 64-bit, or is the platform of any CPU?

Visual Studio provides a good tool: CorFlags, which is embedded in the developer Command prompt. Use the following method, open Developer Command Prompt, enter the CorFlags commands, and enter a detailed path to the DLL, such as CorFlags C:\Temp\ Oracle.DataAccess.dll, you can see the results shown in the screenshot below.




What is the meaning of the result. In fact, we don't need to figure out what each field means. Here is a result comparison table, as long as we according to the results, to the table in comparison, we can draw the DLL is what platform.


Any CPU PE32 with 32BIT = 0
x86 PE32 with 32BIT = 1
X64/itanium (IA-64) pe32+ with 32BIT = 0

Look at the first screenshot, pe32+,32bit=0, so it's a 64-bit DLL.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.