HighTechTalks DotNet Forums  

How to indentify application is 32 bit or 64 bit?

Dotnet General Discussions microsoft.public.dotnet.general


Discuss How to indentify application is 32 bit or 64 bit? in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Prajakta
 
Posts: n/a

Default How to indentify application is 32 bit or 64 bit? - 12-28-2007 , 12:26 AM






Is there any utility or command for windows to determine whether the
application is 32 bit or 64 bit?

Reply With Quote
  #2  
Old   
Peter Ritchie [C# MVP]
 
Posts: n/a

Default RE: How to indentify application is 32 bit or 64 bit? - 12-28-2007 , 11:03 AM






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:

Quote:
Is there any utility or command for windows to determine whether the
application is 32 bit or 64 bit?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.