c# 检测32/64系统
来源:互联网 发布:linux怎么全局翻墙 编辑:程序博客网 时间:2024/06/05 18:23
private int Detect3264()
{
ConnectionOptions oConn = new ConnectionOptions();
ManagementScope oMs = new ManagementScope("\\\\localhost", oConn);
ObjectQuery oQuery = new ObjectQuery("select AddressWidth from Win32_Processor");
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMs, oQuery);
ManagementObjectCollection oReturnCollection = oSearcher.Get();
string addressWidth = null;
foreach (ManagementObject oReturn in oReturnCollection)
{
addressWidth = oReturn["AddressWidth"].ToString();
}
return Convert.ToInt32(addressWidth);
}
最后别忘添加引用System.Management
- c# 检测32/64系统
- C#检测本机是否联网 调用系统函数
- C#检测系统无操作时间与关闭计算机
- python检测windows系统是32还是64位
- IsWow64并不能用来检测是否是Windows 32bit系统还是64bit系统
- IsWow64并不能用来检测是否是Windows 32bit系统还是64bit系统
- IsWow64并不能用来检测是否是Windows 32bit系统还是64bit系统
- c# 检测网络流量
- C# DirectX 区域检测
- C#串口端口检测
- c# 检测网络断线
- c# 检测程序执行时间
- C#检测网络状态
- C#检测网络连接
- C# 检测U盘
- C# 检测防火墙状态
- 检测windows 32位程序是否运行在64位系统上
- 如何用C++代码检测你用的编程环境是64系统还是32位系统?
- 开发线程安全的Servlet
- AIX上使用gcc和g++的一个编译问题的解决
- asp.net 中 Json、Jquery、Post简单使用
- android service生命周期
- android 中捕获home键
- c# 检测32/64系统
- list_for_each_entty函数
- form提交中文编码
- Prim_poj 1287 Networking
- POJ-3204 最大流+枚举
- java连接常见数据库的连接字符串
- VC6.0 最新的 SDK platform sdk xp-sp2 官方下载地址
- Hadoop HDFS源码学习笔记(七)--DFSInputStream -- openInfo
- C++中两个类相互包含引用问题