🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Processor Serial Number

#3272
From: Elkin
Date: Mon, 14 Aug 2006 13:38
47 lines
2289 bytes
Christophe MINETTI ha escrito:

> Hi all,
>
> I would loke to know if there is any API function that could give me the
> Serial Number of the processor ?
>
> Many thanks in advance
>
> Christophe



Hi Christophe,

I've looked for it several times and I've found that the processror's
resial number can be disabled by the user using the bios setup
software.

But, you can use, for example, the Bios Date because it is not the same
for all the processors.

You can use this code to get the bios date that is located in 0xFFFF5
in RAM:

/*-------------------------------*/
PCHAR info;


info=(char*)(0xFFFF5); //Memory location 0xFFFF5
char p = *info; //p stores the byte at the location pointed by info


/*----------------------------------*/


I've used Turbo C+ 3.0, but when the program is written in BCB6 and
reaches the third line of code (char p = *info) an Exception occurs
saying: "Acces violation Read of address 0xFFFF5"


Now the question: is there any way to solve this issue?? I hope you can
find the answer and let me now if that happens.

Best Regards,
Elkin.
Technical Details
Message-ID: <1155562738.143076.29680@p79g2000cwp.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!p79g2000cwp.googlegroups.com!not-for-mail
References: <44DC3809.9DF18A33@ulb.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3381d7b060d24221
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!p79g2000cwp.googlegroups.com!not-for-mail
From: "Elkin" <elkin.enigma@gmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Processor Serial Number
Date: 14 Aug 2006 06:38:58 -0700
Organization: http://groups.google.com
Lines: 48
Message-ID: <1155562738.143076.29680@p79g2000cwp.googlegroups.com>
References: <44DC3809.9DF18A33@ulb.ac.be>
NNTP-Posting-Host: 200.25.224.130
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1155562743 2320 127.0.0.1 (14 Aug 2006 13:39:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 14 Aug 2006 13:39:03 +0000 (UTC)
In-Reply-To: <44DC3809.9DF18A33@ulb.ac.be>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: p79g2000cwp.googlegroups.com; posting-host=200.25.224.130;
   posting-account=RFTtWA0AAAAsCaTrF5RYZZvKxsv-8ICX