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.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Donatas2 reputationPosted Jun 1, 2010, 6:22 AM EDT
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.