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: jtk@atria.com (John Kohl) Subject: Re: locking software to a machine Date: 1995/05/08 Message-ID: #1/1 X-Deja-AN: 102296414 sender: news@atria.com references: <3oi8b3$gds@harbinger.cc.monash.edu.au> organization: Atria Software, Inc. newsgroups: comp.sys.dec >>>>> "Dirk" == Dirk Grunwald writes: In article grunwald@foobar.cs.colorado.edu (Dirk Grunwald) writes: Dirk> Anyway, the getsysinfo program with the (undocumented) HWRPB function Dirk> returns an 'rpbbuf'. Dirk> err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf)); Dirk> that buffer, documented in /usr/include/machine/rpb.h contains the field... Dirk> char rpb_ssn[16]; /* 040: system serial num: 10 ascii chars */ Dirk> I've never looked at this field to see if its' really the ID or not. I tried this, and the rpb_ssn was all zeros on my DEC 3000/500. #include #include #include #include main() { int err; struct rpb rpbbuf; memset(&rpbbuf, 0, sizeof(rpbbuf)); err = getsysinfo(GSI_GET_HWRPB, &rpbbuf, sizeof(rpbbuf), 0, 0); if (err == 1) printf("rbp_ssn=%lx,%lx\n", *(long *)&rpbbuf.rpb_ssn[0], *(long *)&rpbbuf.rpb_ssn[8]); } -- John Kohl or working for but not representing: Atria Software sometimes hacking on: NetBSD/i386