
正文
获取 CPU 序列号
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
function GetCpuID: string;
var
_eax, _ebx, _ecx, _edx: Longword;
s, s1, s2: string;
begin
asm
push eax
push ebx
push ecx
push edx
mov eax,
db $0F,$A2
mov _eax,eax
mov _ebx,ebx
mov _ecx,ecx
mov _edx,edx
pop edx
pop ecx
pop ebx
pop eax
end;
s := IntToHex(_eax, );
s1 := IntToHex(_edx, );
s2 := IntToHex(_ecx, );
result := s+s1+s2;
end;







