3

Duplicate:
How can I tell if another process is 64bit?

Can I detect the bitness of a process from a .net Process object? I'm not trying to detect the bitness of the running application, nor of the OS, but of a specific process where I have an active Process object that is tracking/associated with the process.

Edit
Looking for a solution without pinvoke

Community
  • 1
  • 1
Suraj
  • 35,905
  • 47
  • 139
  • 250
  • 1
    possible duplicate of [How to know a process is 32-bit or 64-bit programmatically](http://stackoverflow.com/q/1953377/113116) and [Detect another process's bitness (in Windows)](http://stackoverflow.com/q/1095085/113116) – Helen May 31 '11 at 14:59
  • @Helen - The linked solutions use pinvoke. Ideally there is a .net native way to gather this information from the Process object. – Suraj May 31 '11 at 15:28
  • 1
    All - this is not an exact duplicate of the linked questions. The referenced questions use pinvoke - that's sort of cheating, and my question is specific to gleaning information from the .net Process object. – Suraj May 31 '11 at 15:37
  • See also [How to determine whether a System.Diagnostics.Process is 32 or 64 bit?](http://stackoverflow.com/q/3575785/113116) – Helen May 31 '11 at 15:43
  • @Gabe - yup...duplicate! lets close this out. – Suraj May 31 '11 at 15:59
  • All - I close this out. Thanks to Gabe for digging up the duplicate. – Suraj May 31 '11 at 15:59
  • @Blindy - what (which noun) would you say instead of "bitness"? Just curious. – TonyCool Apr 16 '14 at 09:46
  • @TonyCool, I would say "word size" or something like that. – Blindy Apr 16 '14 at 14:18

1 Answers1

0

To get your bitness you will have to call some native methods. A good writeup on how to do this can be found in this StackOverflow answer

Community
  • 1
  • 1
Wolfwyrd
  • 15,716
  • 5
  • 47
  • 67