C#: How to tell architecture of machine [duplicate]
Possible Duplicate:
How to detect Windows 64 bit platfo开发者_StackOverflow社区rm with .net?
At a low level, how can I tell if a particular machine is 64-bit or 32-bit? I have a Firebird d/b that appears to be sensitive to the 64-bit architecture, and I want to verify that.
It sounds like the Environment.Is64BitOperatingSystem
property is exactly what you need.
You can tell if you are running under a 64 bit OS with the Environment.Is64BitOperatingSystem
property. If you have a 64bit machine but with a 32 bit OS installed then everything will be running as 32 bit.
精彩评论