Home > Interview Questions > C#.NET > How do you identify a process is 32 bit or 64 bit using C# program?

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

by Thamil   on 01/06/2013   Category: C#.NET   |  Level: Beginner   |  Views: 2562    |  Points: 25     |  Gold 


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");
}


« How do you display NO DATA FOUND when there is no record to display in gridview?
» How do sign out in ASP.NET form authentication?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts