How do I tell if my application is running as a 32-bit or 64-bit application?

If you’re using .NET 4.0, it’s a one-liner for the current process:

Environment.Is64BitProcess

Reference: Environment.Is64BitProcess Property (MSDN)

Leave a Comment