获得CPU的信息
来源:互联网 发布:现在淘宝上视频 编辑:程序博客网 时间:2024/05/23 19:19
#include <conio.h>
#include <iostream>
#pragma hdrstop
#pragma inline
//#pragma argsused
using namespace std;
int main()
{
char OEMString[13];
int iEAXValue, iEBXValue, iECXValue, iEDXValue;
_asm
{
mov eax, 0
cpuid
mov DWORD PTR OEMString, ebx
mov DWORD PTR OEMString + 4, edx
mov DWORD PTR OEMString + 8, ecx
mov BYTE PTR OEMString + 12, 0
}
cout << "This CPU's OEM String is:"
<< OEMString
<< endl;
_asm
{
mov eax, 1
cpuid
mov iEAXValue, eax
mov iEBXValue, ebx
mov iECXValue, ecx
mov iEDXValue, edx
}
if(iEDXValue & 0x800000)
cout << "This is MMX CPU"
<< endl;
int iCPUFamily = (0xf00 & iEAXValue) >> 8;
cout << "CPU Family is:"
<< iCPUFamily
<< endl;
_asm
{
mov eax, 2
cpuid
}
return 0;
}
- 获得CPU的信息
- 获得CPU的信息
- CPU信息的获得
- CPU信息的获得
- CPU信息的获得
- 获得linux的cpu信息
- CPU信息的获得,比较全面的
- CPU信息的获得,比较全面的。
- Android 获得cpu的配置信息
- Linux下获得CPU的信息
- java 获得CPU 内存信息
- 研究心得------->CPU信息的获得,比较全面的。
- CPU 占用率的获得
- 在C++中使用CPU ID指令获得CPU信息
- 获得JDK的安装目录以及jconsole观察cpu与内存信息
- FEP: 测试 docker matrix, 获得 CPU, MEMORY, 网络性能的 统计信息
- 获得进程的CPU占用率
- 获得CPU温度的函数
- 奇怪的Apache与IP设置问题
- Vc++数据库编程中SQL语句构造失败的原因
- 关于需求变化
- 终于用上了自己的BLOG了!
- 网络-socket相关(1)
- 获得CPU的信息
- 理解XML
- 时间杀情
- 开放源代码数据库
- ^_^第一次正式的找个网站,开始我的博客生涯
- hi,garbages
- 如何让控件的显示能超过主窗口範圍?
- 关于在SendMail邮件服务器上反垃圾邮件的一点心得
- JCoverage使用详解