Article View: borland.public.cppbuilder.nativeapi
Article #3265Re: Processor Serial Number
From: Alan Bellingham
Date: Fri, 11 Aug 2006 12:29
Date: Fri, 11 Aug 2006 12:29
37 lines
2598 bytes
2598 bytes
Christophe MINETTI <cminetti@ulb.ac.be> wrote: >In fact, it does not matter if it is the processor. What I would like is a >simple way to get the ID (a uniwue ID) of the computer on which my software >is running. My idea was to get the SN of the processor but it can be the >motherboard or anything else. Ah, I thought so. This is an often-asked question, and the answer tends to descend into philosophy. What is the computer? Does it change when I do a processor upgrade? A drive upgrade? A motherboard upgrade? A network card change? The closest to unique tends to be the MAC on a network interface. But you may or may not have a network interface, and you may have multiple ones. And though MACs are supposed to be unique, than can be reprogrammed. Now, if you aren't after software protection, but just trying to prevent multiple machines on a network getting confused, writing an entry into the registry on installation would work. Use CoCreateGUID() to generate your GUID, and you should have something "To a very high degree of certainty, this function returns a unique value � no other invocation, on the same or any other system (networked or not), should return the same value." This value should then hang around on that machine's registry until such time as you do an OS rebuild. If you wish to prevent the same software being installed more than once, that's a different problem. There may be a unique UID somewhere in the registry, but I don't know of one. Alan Bellingham -- ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Technical Details
Message-ID:
<8npod298e4p9m2bo86t2acq4dihl815es1@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44DC3809.9DF18A33@ulb.ac.be> <7liod2p9gklqut6pga9ibcm102mb2nt457@4ax.com> <44DC57F7.ACC3A974@ulb.ac.be>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3381d7b060d24221 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Alan Bellingham <alan@lspace.org> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Processor Serial Number Date: Fri, 11 Aug 2006 13:29:40 +0100 Organization: Private Reply-To: alan@lspace.org Message-ID: <8npod298e4p9m2bo86t2acq4dihl815es1@4ax.com> References: <44DC3809.9DF18A33@ulb.ac.be> <7liod2p9gklqut6pga9ibcm102mb2nt457@4ax.com> <44DC57F7.ACC3A974@ulb.ac.be> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1155299380 193.129.251.253 (11 Aug 2006 05:29:40 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail