1

Possible Duplicate:
How to detect Windows 64 bit platform 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.

Community
  • 1
  • 1
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120

2 Answers2

6

It sounds like the Environment.Is64BitOperatingSystem property is exactly what you need.

LukeH
  • 263,068
  • 57
  • 365
  • 409
0

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.

slugster
  • 49,403
  • 14
  • 95
  • 145