From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8551a0a781789164 X-Google-Attributes: gid1164f8,public From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald) Subject: Re: locking software to a machine Date: 1995/05/07 Message-ID: #1/1 X-Deja-AN: 102194232 references: <3oi8b3$gds@harbinger.cc.monash.edu.au> organization: University of Colorado at Boulder reply-to: grunwald@foobar.cs.colorado.edu newsgroups: comp.sys.dec >>>>> "SC" == SH Cunningham writes: In article <3oi8b3$gds@harbinger.cc.monash.edu.au> shcun1@penfold.cc.monash.edu.au (Mr SH Cunningham) writes: SC> Can anyone tell me how to lock a program to an AXP machine? I SC> have used software which does this and wish to be able to lock a SC> program to a machine by getting a unique ID for that machine. -- In general, this isn't a good thing to do, because users are then penalized when they upgrade to a new machine which has a different serial number. Worse yet, locking to the internet number is even worse, because it means you can't change move to another ethernet. You should be willing to move software to a new machine for free if you do this. Anyway, the getsysinfo program with the (undocumented) HWRPB function returns an 'rpbbuf'. err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf)); that buffer, documented in /usr/include/machine/rpb.h contains the field... char rpb_ssn[16]; /* 040: system serial num: 10 ascii chars */ I've never looked at this field to see if its' really the ID or not.