How can I tell if this application is 32bit or 64bit on the window 64bit system?

Source: Internet
Author: User

To keep backwards compatibility, most 32-bit applications can run on a 64-bit Windows operating system. In most cases, we don't have to worry, but sometimes we need to know exactly whether the current application is a 32-bit application or a 64-bit application? In general, there are 3 ways to do this:

(1) Using Task Manager to identify

For example, open Task Manager and select the Processes tab of the 32-bit program whose image name (image name) will contain the *32 keyword.

For example, the first chrome.exe*32, this represents the current version of the Chrome browser application is 32-bit.



(2) to see if (x86) keywords are included in the path to the executable file in the application

If the path to the executable file in your application includes the x86 keyword, in general, the application is a 32-bit application.

Because the operating system automatically maps the installation directory "C:\Program files" to C:\Program files (x86) when a 32-bit application is installed,

This means that the application is a 32-bit application. Also, note that some of the window components are not in the "C:\Program Files" directory, but

C:\Windows\System32 directory, this time we do not assume that this directory DLL library or window components are 32-bit,

Not really, on the contrary, this is the directory of 64-bit components, the real 32-bit component is placed under the C:\Windows\SysWow64 directory, Magic Bar,

Don't be a pit. In fact it is also very well understood that WOW64 represents window on Windows 64.




(3) If neither of the above methods works, consider using code to identify

3.1 If it's a Java application


The Sun.arch.data.model has a return value of 32, 64, or unknown, respectively, corresponding to the number of bits that should be in the program.

3.2 If it is a c/c++,c# application, we can use the PowerShell script

$width = [System.runtime.interopservices.marshal]::sizeof ([System.IntPtr]) if ($width-eq 4) {    # Bit}else if ($ Width-eq 8) {# a bit}







How can I tell if this application is 32bit or 64bit on the window 64bit system?

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.