





                                     BOOTRCD.ZIP                                     BOOTRCD.ZIP

                            BOOT RECORD UTILITY ROUTINES                            BOOT RECORD UTILITY ROUTINES

                           Copyright 1992, George H. Mealy




          The contents of this ZIP file are:


               1.   BRECORD.H  - Header file

               2.   BRECORD.CPP - Routines for dealing with the boot
                   record, root dictionary, and FATs.

               3.   BOOTRCD.CPP - Program using the above to display
                   the boot record of any drive and set the volume
                   serial number.

               4.   GETOPT.CPP - A file distributed with the Borland C
                   compilers.  A few very minor changes have been
                   made.  This is a utility routine used to take
                   command lines apart.


          CAUTION:  You are on your own when using the routines in
          BRECORD.CPP!  Be absolutely sure that you understand what you are
          doing when you use them, and use a floppy drive for testing.  I
          have used these routines for writing a disk compaction program,
          so I am sure that they do correctly what I intended them to do.
          But, I offer no warranty concerning your own use of the routines.

          This is copyrighted material.  It may be used free of charge but
          may be distributed only by way of BBSs or equivalent services.
          It may NOT be distributed on floppy disks.

          The layout of the boot record is given as part of the definition
          of the class brecord.  The volume serial number is undocumented,
          and is displayed by the DOS5 VOL command as a hexadecimal far
          pointer.  I have chosen to display it in the form mmmm.nnnn, in
          the style of a major and minor version number (decimal, of
          course!)

          By the way, Stacker will not allow me to update any STACKVOL.DSK
          boot record.  This is mildly interesting, but no big deal.
