checking it the current os is a 32bit or 64bit version 检查操作系统是32位还是64位

 

            if (System.IntPtr.Size==4)
            {
                Console.WriteLine("32bit os");
            }
            if (System.IntPtr.Size == 8)
            {
                Console.WriteLine("64bit os");
            }

 

 

 

 

posted @ 2014-04-24 10:58  zyip  阅读(193)  评论(0)    收藏  举报