开发者

C#: How to tell architecture of machine [duplicate]

开发者 https://www.devze.com 2023-02-12 16:59 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to detect Windows 64 bit platfo开发者_StackOverflow社区rm with .net?
This question already has answers here: Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消