C# - Environment.Is64BitProcess vs. IsWow64Process()

Environment.Is64BitProcess is a .NET property on the static class Environment.
It returns true if the current process is a 64-bit process (running on 64-bit Windows).
I.e. the program was compiled for 64-bit, is running as 64-bit, on a 64-bit operating system.
IsWow64Process() is Windows API function.
It returns true if the process (identified by process handle) is a 32-bit process running on 64-bit Windows.
I.e. the program was compiled for 32-bit, is running as 32-bit, on a 64-bit operating system, but in a 32-bit-to-64-bit compatibility layer called Wow64.

Wow64 stands for Windows-32 on Windows-64;

Is64BitProcess
IsWow64Process
32-bit on 32-bit
False
False
32-bit on 64-bit
False
True
64-bit on 64-bit
True
False

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath