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,716
  • 12
  • 62
  • 117

2 Answers2

6

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

LukeH
  • 252,910
  • 55
  • 358
  • 405
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
  • 48,492
  • 14
  • 96
  • 143