🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unique compuer ID

#6368
From: Remy Lebeau (TeamB)
Date: Fri, 20 May 2005 19:52
25 lines
1823 bytes
"Renald Yazmir" <renald@partmaker.com> wrote in message
news:428e3c63$1@newsgroups.borland.com...

> What Windows API function can I use to get a unique compuer ID?

There is no such ID associated with a computer to begin with, thus no
function to retreive it.  The closest you can get is to:

1) retreive the serial number of your hard drive(s) via
GetVolumeInformation()

2) use inline assembly code to query the CPU for its unique ID (but this
only works on certain Pentium chips, is not included in the latest chips
anymore because it was too controversial, and can be disabled by the user in
the BIOS).

3) generate your own unique IDs, such as via CoCreateGuid().  This generates
a new GUID each time it is called.  It is not stored anywhere on the
hardware, although it may use hardware values to help ensure uniqueness.
You are responsible for keeping track of the values you generate.  If you
lose it, it is gone.


Gambit
Technical Details
Message-ID: <428e3ff8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <428e3c63$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a23b7d6ad8637bed
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <428e3c63$1@newsgroups.borland.com>
Subject: Re: Unique compuer ID
Date: Fri, 20 May 2005 12:52:25 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <428e3ff8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116618744 68.69.17.41 (20 May 2005 12:52:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail