How to detect Windows 64 bit platform with .net?
- by Marc
In a .net 2.0 C# application I use the following code to detect the operating system platform:
string os_platform = System.Environment.OSVersion.Platform.ToString();<br/>
This returns "Win32NT".
The problem is that it returns "Win32NT" even when running on Windows Vista 64bit.
Is there any other method to know the correct platform (32 or…