🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12469

Re: Get CPU Serial/Number

#12469
From: Vladimir Afanasyev
Date: Mon, 08 Dec 2003 08:21
15 lines
1956 bytes
Hi  Daniele,

"Daniele Pellone" <pellone@tiscali.it> wrote:
>Is there a API function that allow to read the CPU serial/number?

You can try to use WMI.
Information about proccessor can be find in Win32_Processor class, property ProcessorId :

ProcessorId 
Data type: string
Access type: Read-only 
Processor-specific information that describes the processor's features. For x86 class CPUs, the field's format depends on the processor's support of the CPUID instruction. If the instruction is supported, the property contains two DWORD-formatted values. The first (offsets 08h-0Bh) is the EAX value returned by a CPUID instruction with input EAX set to 1. The second (offsets 0Ch-0Fh) is the EDX value returned by that instruction. Only the first two bytes of the property are significant (all others are set to 0) and contain (in DWORD-format) the contents of the DX register at CPU reset. 

Vladimir.
Technical Details
Message-ID: <3fd4429c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fd32de3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e265a089116d07e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-08 01:26:26 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Get CPU Serial/Number
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226     
X-Forwarded-For: 192.168.0.147
References:  <3fd32de3@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fd4429c$1@newsgroups.borland.com>
Date: 8 Dec 2003 01:21:32 -0700
X-Trace: newsgroups.borland.com 1070875292 207.105.83.66 (8 Dec 2003 01:21:32 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail