🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #74

Re: add serial# to program

#74
From: Michael J. Eager
Date: Sat, 31 Oct 1992 19:01
27 lines
1651 bytes
In article 3153@infonode.ingr.com, fordke@infonode.ingr.com (Keith Ford) writes:
>
>I'm looking for a program or technique to allow me to add registration
>type codes to a program.  When the program is unregistered, or the
>registration information does not match known information on the system,
>I wish to display a certain message.  Likewise, when the registration
>information matches known information on the system, I wish to display
>another message.
>
>What I want to do does not cripple the software, just display an
>appropriate message from a menu option.

Presumably, you wish to initialize copies of the program on diskettes before
you ship them.

One way is to copy the .exe file, looking for the place where you have 
stored the serial number.  Use some "unusual" constant in your program 
which you look for and either replace in part or whole.

You will need to fix up the checksum value, either by recalculating it for
the entire file, or by having extra bytes in the serial number data which
are stored to make the checksum remain unchanged.

---
Michael J. Eager		Michael.Eager@eagercon.com
Eager Consulting		(415) 325-8077 
1960 Park Boulevard, Palo Alto, CA 94306-1141
Technical Details
Message-ID: <1992Oct31.190132.17575@eagercon.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!ditka!eagercon!eagercon!eager
References: <1992Oct29.215804.3153@infonode.ingr.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!ditka!eagercon!eagercon!eager
From: eager@eagercon.com (Michael J. Eager)
Subject: Re: add serial# to program
Message-ID: <1992Oct31.190132.17575@eagercon.com>
Sender: root@eagercon.com (Operator)
Reply-To: eager@eagercon.com
Organization: Eager Consulting
References: <1992Oct29.215804.3153@infonode.ingr.com>
Date: Sat, 31 Oct 1992 19:01:32 GMT
Lines: 28