How to indentify application is 32 bit or 64 bit?
am 28.12.2007 06:26:00 von PrajaktaIs there any utility or command for windows to determine whether the
application is 32 bit or 64 bit?
Is there any utility or command for windows to determine whether the
application is 32 bit or 64 bit?
In .Net, you can see if you're running in the 64-bit CLR by checking the size
of the IntPtr type. If you're running 64-bit its size will be 8, in 32-bit
it will be 4.
For example:
public static Boolean Is64Bit()
{
return IntPtr.Size == 8;
}
--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"Prajakta" wrote:
> Is there any utility or command for windows to determine whether the
> application is 32 bit or 64 bit?