views:

36

answers:

1

Hi,

I have a C# project with target platform set to "Any CPU". As I understand, the app will be compiled from MSIL to 32-bit on regular Windows (x86) and 64-bit for 64-bit Windows. Is it possible to show at runtime what mode it is running in ?

Thanks in advance.

pika81

A: 

Here are some of the ways : http://rongchaua.net/blog/c-how-to-determine-processor-64-bit-or-32-bit/

gillyb
Actually the IsWow64Process API method seems to be just what I need.Thanks!
pika81
You're welcome :)
gillyb