打印
[复制链接]
178|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hotpower|  楼主 | 2023-9-18 23:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
string GetCPUID()
{
#ifndef _WINXP
        INT32 dwBuf[4] = { 0 };
        __cpuidex(dwBuf, 1, 1);
        return int2hex(dwBuf[3], 8) + int2hex(dwBuf[0], 8);
#else
        uint32_t s1 = 0, s2 = 0;
        __asm {
                mov eax, 01h;
                xor edx, edx;
                cpuid;
                mov s1, edx;
                mov s2, eax;
        }
        return int2hex(s1, 8) + int2hex(s2, 8);
#endif
}


使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:[url=http://www.21ic.com/tools/HotWC3_V1.23.html]

1538

主题

21697

帖子

506

粉丝