VC++获取CPU序列号 CPU ID

Posted sinceret

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VC++获取CPU序列号 CPU ID相关的知识,希望对你有一定的参考价值。

CString strCPUID;
unsigned long s1, s2;

__asm
		mov eax, 01h
		xor edx, edx
		cpuid 
		mov s1, edx
		mov s2, eax
	
 
strCPUID.Format(_T("%08X%08X"), s1, s2);

SetDlgItemText(IDC_STATIC,strCPUID);

  

参考https://blog.csdn.net/WU9797/article/details/81209531

以上是关于VC++获取CPU序列号 CPU ID的主要内容,如果未能解决你的问题,请参考以下文章