home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
bootsec
/
bootsec.h
< prev
next >
Wrap
Text File
|
1993-06-10
|
779b
|
37 lines
// structure definitions taken from Microsoft MS-DOS
// Programmer's Reference, volume 5
typedef struct tagBOOTSECTOR
{
BYTE bsJump[3];
BYTE bsOemName[8];
WORD bsBytePerSec;
BYTE bsSecPerCluster;
WORD bsResSectores;
BYTE bsFAT;
WORD bsRootDirEnts;
WORD bsSectors;
BYTE bsMedia;
WORD bsFATsecs;
WORD bsSecPerTrack;
WORD bsHeads;
DWORD bsHiddenSecs;
DWORD bsHugeSectoes;
BYTE bsDriveNumber;
BYTE bsReserved;
BYTE bsBootSig;
DWORD bsVolumeID; // serial number
BYTE bsVolumeLabel[11];
BYTE bsFileSysType[8];
} BOOTSECTOR, FAR *LPBOOTSECTOR;
typedef struct tagDISKIO
{
DWORD diStartSector;
WORD diSectors;
LPSTR diBuffer;
} DISKIO, NEAR * NPDISKIO;