F
fuyu1982815
Unregistered / Unconfirmed
GUEST, unregistred user!
请问有谁能告诉我?我也找了其他的程序,但是每一台机器的取到的CPU序列号都是一样的为:-1075053569
程序如下:
procedure TForm1.GetCpuInfo;
var
R: array[0..255] of Char;
CpuID: Integer;
begin
FillChar(R, 20, 0);
asm
mov eax, 0
db 0fh, 0a2h
mov dword ptr R[0], ebx
mov dword ptr R[4], edx
mov dword ptr R[8], ecx
mov eax, 1
db 0fh, 0a2h
mov CpuID, edx
end;
ShowMessage('CPU制造商为:' + R + #13 + '序列号为:' + IntToStr(CpuID));
end;
程序如下:
procedure TForm1.GetCpuInfo;
var
R: array[0..255] of Char;
CpuID: Integer;
begin
FillChar(R, 20, 0);
asm
mov eax, 0
db 0fh, 0a2h
mov dword ptr R[0], ebx
mov dword ptr R[4], edx
mov dword ptr R[8], ecx
mov eax, 1
db 0fh, 0a2h
mov CpuID, edx
end;
ShowMessage('CPU制造商为:' + R + #13 + '序列号为:' + IntToStr(CpuID));
end;