If you’re using .NET 4.0, it’s a one-liner for the current process:
Environment.Is64BitProcess
Reference: Environment.Is64BitProcess Property (MSDN)
More Related Contents:
- Reading 64bit Registry from a 32bit application
- Is an int a 64-bit integer in 64-bit C#?
- How to detect Windows 64-bit platform with .NET?
- C# – How to get Program Files (x86) on Windows 64 bit
- Using Side-by-Side assemblies to load the x64 or x32 version of a DLL
- How to find if a native DLL file is compiled as x64 or x86?
- Converting a pointer into an integer
- Silent failures in C#, seemingly unhandled exceptions that does not crash the program
- How do I disable a system device programmatically?
- File getting copied to SysWOW64 instead of System32
- sizeof(int) on x64?
- Can I get Memcached running on a Windows (x64) 64bit environment?
- Visual Studio designer in x64 doesn’t work
- System.BadImageFormatException: Could not load file or assembly [duplicate]
- Skipping Incompatible Libraries at compile
- Count number of bits in a 64-bit (long, big) integer?
- Reading the registry and Wow6432Node key
- .net Framework Error (HRESULT 0x8007000B)
- Size of pid_t, uid_t, gid_t on Linux
- IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem?
- Memory limitations in a 64-bit .Net application?
- Options for embedding Chromium instead of IE WebBrowser control with WPF/C# [closed]
- Close Window from ViewModel [duplicate]
- Learning Single Responsibility Principle with C#
- Intersect LINQ query
- Why am I getting error CS0246: The type or namespace name could not be found?
- Best C# API to create PDF [closed]
- onchange event for html.dropdownlist
- LINQ query to return a Dictionary
- Is it good idea to use “Control.CheckForIllegalCrossThreadCalls = false” [duplicate]