Category : C Source Code
Archive   : PROGPROT.ZIP
Filename : DEMO.C
#include
#include "setver.h"
int main ()
{
char far *p;
unsigned int x;
printf ("Serial/Version Number/Copyright Demo Program\n\n");
if ((p = GetCopyright ()) == (char far *) NULL)
{
/* print error and/or abort execution */
printf ("Program has been tampered with.\n");
exit (1);
}
/* print copyright, serial number, and version number */
printf ("%Fs\nSerial Number %lu\n", p, GetSerialNumber ());
x = GetVersionNumber ();
printf ("Version Number V%u.%02u\n", x/100, x%100);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/