home *** CD-ROM | disk | FTP | other *** search
- BOOTSEC.EXE - Reads and displays the boot sector of a drive
- ------------------------------------------------------------
-
- BOOTSEC.EXE version 1.0 (first version) requires Windows 3.1 to run and
- the Windows 3.1 SDK to compile and build.
-
- DESCRIPTION:
- ------------
-
- BOOTSEC demonstrates how to use INT 25 (absolute disk read) to read
- the boot sector (the first sector on head 0, cylinder 0) off of a
- drive (either floppy drive or hard disk).
-
- NOTE: The information contained in the boot sector was changed
- in MS-DOS 5.0. If this program is run on a disk that was
- formatted with a previous version of MS-DOS, then some of
- the fields in the structure will not be filled out, and
- the program may display garbage. The elements of the structure
- that were not changed will be displayed correctly.
-
-
- BOOTSEC will check to see if the drive is one of the following:
-
- drive detection method
- ----- ----------------
- CD-ROM INT 2F calls to MSCDEX
- Net drive Windows API WNetGetConnection()
- RAM drive checks the boot sector to see if there is only 1 FAT
- Floppy Disk Windows API GetDriveType()
- Hard Disk Windows API GetDriveType()
-
- BOOTSEC also shows how to implement a dialog box as a main window using
- a private dialog class.
-
- DESCRIPTION OF FILES:
- ---------------------
-
- BOOTSEC.C - this file contains all of the code for the sample
- BOOTSEC.H - this file contains the structure declarations for
- the BOOTSECTOR and the DISKIO structures
-
-