Pages

Thursday, July 25, 2013

Check whether the OS is a 64 bit or 32 bit environment in C#

The following will check if the Operating system is 64 bit or 32 bit
if
(System.Environment.Is64BitOperatingSystem)
{

MessageBox.Show("64 bit machine");}

else{
MessageBox.Show("32 bit machine");}

No comments:

Post a Comment