🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unique compuer ID

#6369
From: Vladimir Stefanovic
Date: Fri, 20 May 2005 20:05
44 lines
2418 bytes
In fact there are few more "unique" ID-s to think about:

4) Hardware HD serial number (not volume partition number!)
Google for: diskid32.exe (there is a complete source code)

5) MAC addresses
Plenty of samples on the web (even on BDN), just google...



-- 
Best regards,
Vladimir Stefanovic
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:428e3ff8$1@newsgroups.borland.com...
>
> "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: <428e42eb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!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> <428e3ff8$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: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <428e3c63$1@newsgroups.borland.com> <428e3ff8$1@newsgroups.borland.com>
Subject: Re: Unique compuer ID
Date: Fri, 20 May 2005 22:05:19 +0200
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <428e42eb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116619499 82.117.212.65 (20 May 2005 13:04:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail