Blog

Check bit size of operating system(32 Bit/64 Bit)

Posted by Yogesh Sharma Blogs | How do I Dec 03, 2012
Check bit size of operating system.
BIT SIZE OF OPERATING SYSTEM USING C#.

There are two method to check this -

1. check 

int size= IntPtr.Size;

//if size=4 -> OS is 32 bit
//if size=8.> OS is 64 bit

2. check

boolean bitsize= Environment.Is64BitOperatingSystem

If this return true then it means OS is 64 bit or if return false means OS is 32 bit.
COMMENT USING
PREMIUM SPONSORS
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.