home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1998 February / PCOnline_02_1998.iso / filesbbs / win95 / ext2tool.exe / SRC / GENHD.H < prev    next >
C/C++ Source or Header  |  1995-04-19  |  1KB  |  33 lines

  1. /*
  2.  *     genhd.h Copyright (C) 1992 Drew Eckhardt
  3.  *    Generic hard disk header file by  
  4.  *         Drew Eckhardt
  5.  *
  6.  *        <drew@colorado.edu>
  7.  */
  8.     
  9. #define EXTENDED_PARTITION 5
  10.     
  11. struct partition {
  12.     unsigned char boot_ind;        /* 0x80 - active */
  13.     unsigned char head;        /* starting head */
  14.     unsigned char sector;        /* starting sector */
  15.     unsigned char cyl;        /* starting cylinder */
  16.     unsigned char sys_ind;        /* What partition type */
  17.     unsigned char end_head;        /* end head */
  18.     unsigned char end_sector;    /* end sector */
  19.     unsigned char end_cyl;        /* end cylinder */
  20.     unsigned short start_sectlo;    /* starting sector counting from 0 */
  21.     unsigned short start_secthi;    /* starting sector counting from 0 */
  22.     unsigned short nr_sectslo;    /* nr of sectors in partition */
  23.     unsigned short nr_sectshi;    /* nr of sectors in partition */
  24. };
  25.  
  26. #define FIRST_SECT_MAGIC 0xaa55
  27.  
  28. struct firstsector {
  29.     unsigned char    fill[0x1be];
  30.     struct partition part[4];
  31.     unsigned short   magic;        /* Must be FIRST_SECT_MAGIC */
  32. };
  33.