CString CGetCPUIDDlg::GetCPUID()
{
CString strCPUID;
unsigned long s1, s2;
__asm{
mov eax, 01h
xor edx, edx
cpuid
mov s1, edx
mov s2, eax
}
strCPUID.Format("%08X%08X", s1, s2);
return strCPUID;
}
c语言获取cpu序列号
于 2022-10-17 00:51:46 首次发布