How can i found that the Machine is 32 bit or 64 bit.
How can i found that the Machine is 32 bit or 64 bit programetically.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DonatasPosted Jun 1, 2010, 10:22 AM
public static Architecture GetOSArchitecture()
{
return IntPtr.Size == 4 ? Architecture.X86 : Architecture.X64;
}
if IntPtr.Size = 4 then your on 32bit system, else if 8, then you're on 64bit system.