Blog
157   0

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

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