home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / DOS5BOOT.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  2KB  |  47 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  DOS5BOOT.H - DOS 5 boot record
  5. */
  6.  
  7. #ifndef DOS5BOOT__H
  8. #define DOS5BOOT__H
  9.  
  10. #include "extkword.h"
  11.  
  12. #if defined(__TURBOC__)
  13.  #pragma option -a-
  14. #elif defined(__ZTC__)
  15.  #pragma ZTC align 1
  16. #else /* MSC/QC/WATCOM/METAWARE */
  17.  #pragma pack(1)
  18. #endif
  19.  
  20. typedef struct {                                /* offset in buffer record */
  21.         char      bsJump[3];                    /* 1 - 3                   */
  22.         char      bsOemName[8];                 /* 4 - 11                  */
  23.         short     bsBytesPerSec;                /* 12 - 13                 */
  24.         char      bsSecPerClust;                /* 14                      */
  25.         short     bsResSectors;                 /* 15 - 16                 */
  26.         char      bsFATs;                       /* 17                      */
  27.         short     bsRootDirEnts;                /* 18 - 19                 */
  28.         short     bsSectors;                    /* 20 - 21                 */
  29.         char      bsMedia;                      /* 22                      */
  30.         short     bsFATsecs;                    /* 23 - 24                 */
  31.         short     bsSecPerTrack;                /* 25 - 26                 */
  32.         short     bsHeads;                      /* 27 - 28                 */
  33.         long      bsHiddenSecs;                 /* 29 - 32                 */
  34.         long      bsHugeSectors;                /* 33 - 36                 */
  35.         char      bsDriveNumber;                /* 37                      */
  36.         char      bsReserved1;                  /* 38                      */
  37.         char      bsBootSignature;              /* 39                      */
  38.         long      bsVolumeID;                   /* 40 - 43                 */
  39.         char      bsVolumeLabel[11];            /* 44 - 54                 */
  40.         char      bsFileSysType[8];             /* 54 - 61                 */
  41.         char      bsReserved2[8];               /* 62 - 69                 */
  42.         char      bsJunk[442];                  /* 70 - end of record
  43.                                                    (byte 512 is last)      */
  44.         } B_REC;                    /* Boot_record; total of 512 bytes     */
  45.  
  46. #endif /* DOS5BOOT__H */
  47.