Mar 15

Today a friend of mine asked me if there was an easy way to check if he was running in 32 or 64 bit version of windows. I’m still not sure on why he wanted to know that (I’m assuming he doesn’t belong to the small group of people that really needs this info), but the good news is that there are a couple of properties exposed by the Environment class which return that info: Is64BitOperatingSystem (true when running in a 64 bit operating system) and Is64BitProcess (true when running in a 64-bit process – ie, with access to a 64 bit address space). Notice that these are *new* properties introduced by the .NET 4.0 :,,)

1 comment so far

  1. Bruno Lopes
    7:15 pm - 3-15-2010

    If you”re not using .net 4.0, you can check here for the answer to that question):