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.
comments
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts