You can use the following properties Environment:
System.Environment.Is64BitOperatingSystem
System.Environment.Is64BitProcess
Update
For platforms prior to .Net 4.0, the following functions can be used to implement the above functions:
How to identify 64-bit Windows platform with .NET?
source
share