#ifndef TPLIB_H #define TPLIB_H // // TP library interfaces // // Author: J. van Wijk // // Stripped version for DFSee documentation purposes // #pragma pack(1) // byte packing typedef struct _tpfs_ebpb // ext. boot parameter block { USHORT SectSize; // bytes per sector (BPB start) BYTE ClustSize; // sectors per cluster USHORT FatOffset; // reserved sectors to 1st FAT BYTE NrOfFats; // nr of FATS (FAT only) USHORT RootEntries; // Max std entries \ (FAT only) USHORT Sectors; // nr of sectors if < 64K BYTE MediaType; // mediatype (F8 for HD) USHORT FatSectors; // nr of sectors/FAT (FAT only) USHORT LogGeoSect; // nr of sectors/Track USHORT LogGeoHead; // nr of heads ULONG HiddenSectors; // Sector-offset from MBR/EBR ULONG BigSectors; // nr of sectors if >= 64K BYTE PhysDriveNr; // Drive number (80 for HD 1) BYTE HeadState; // head / CHKDSK/SCAN required BYTE Signature; // bpb signature, 28, 29, 80 } TPFS_EBPB; // end of struct "tpfs_ebpb" #endif