Sunday, July 19, 2009

 

.NET: Determine Whether You Are Running in a 32-bit or 64-bit Process

Saw this excellent tip on StackOverflow today: You can use IntPtr.Size to determine whether you are running in a 32-bit or 64-bit process, as it will be 4 or 8 bytes respectively.



    

Powered by Blogger