1.

Solve : How to detect Windows 64-bit platform with .NET??

Answer»

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.T oString();
This returns "Win32NT". The PROBLEM is that it returns "Win32NT" even when RUNNING on Windows Vista 64-bit.

Is there any other method to KNOW the correct platform (32 or 64 bit)?

Note that it should also detect 64 bit when run as a 32 bit application on Windows 64 bit.Copy pasted question from here.



Discussion

No Comment Found