3 April 2014

How do you identify a process is 32 bit or 64 bit using C# program?



we can verify the process is 32 or 64 bit by using IntPtr.Size. see the below sample code

if (IntPtr.Size == 4)
{ 
Response.Write("32 bit");
}
lse if(IntPtr.Size == 8)
{
Response.Write("64 bit");
}

No comments:

Post a Comment