Article View: comp.lang.pascal.borland
Article #368PIII PSN
From: Robert AH Prins
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
39 lines
1570 bytes
1570 bytes
Found this on <http://jpc.pair.com/Codex/article/psne.html> might be of some
use. It's Delphi, so replace label1.caption with a string variable.
var HasID:boolean;
lowb,midb,hib,flags:integer;
begin
asm
push ebx
mov eax,1
DB $0F,$A2
mov hib,eax
mov flags,edx
pop ebx
end;
HasID:=((flags AND (1 shl 18))>0);
if HasID then
begin
asm
push ebx
mov eax,3
DB $0F,$A2
mov midb,edx
mov lowb,ecx
pop ebx
end;
label1.caption:='Num�ro de s�rie : ' +
IntToHex(hib,8)+IntToHex(midb,8)+IntToHex(lowb,8);
end
else
label1.caption:='Pas de num�ro de s�rie.';
end;
Robert
--
Robert AH Prins
prinsra@williscorroon.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<7cbqeu$t79$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111659,f43108bce7cca443,start X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,f43108bce7cca443,start X-Google-Attributes: gid108ebd,public From: Robert AH Prins <prinsra@williscorroon.com> Subject: PIII PSN Date: 1999/03/12 Message-ID: <7cbqeu$t79$1@nnrp1.dejanews.com> X-Deja-AN: 454288695 X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 193.130.234.1 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Mar 12 19:38:08 1999 GMT Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I)