ID: Q102870
The information in this article applies to:
BOOTSEC demonstrates how to use Interrupt 25h (absolute disk read) to read the boot sector (the first sector on head 0, cylinder 0) off of a drive (either a floppy disk drive or hard disk).
BOOTSEC checks to see whether the drive is one of the following:
Drive Detection Method
---------------------------------
CD-ROM Interrupt 2F calls to MSCDEX.
Net drive Windows API WNetGetConnection().
RAM drive Checks the boot sector to see if there is one FAT.
Hard disk Checks the media BYTE of the boot sector. If it is
equal to 0xF8h then it is a hard disk.
Floppy disk Checks the media BYTE of the boot sector. If it is
not equal to 0xF8h and it is not a RAM drive, net
drive, or CD-ROM drive, then it is a floppy disk drive.
BOOTSEC also shows how to implement a dialog box as a main window
using a private dialog class.
The following file is available for download from the Microsoft Software Library:
~ LSTDDX.EXE (size: 44838 bytes)
For more information about downloading files from the Microsoft Software
Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591
TITLE : How to Obtain Microsoft Support Files from
Online Services
The following information is contained in the boot sector:
Additional query words: INT softlib BOOTSEC.EXE KBFILE
Keywords : kbsample kb16bitonly kbWinOS310 KrFileIO
Version : 3.10
Platform : WINDOWS
Last Reviewed: December 12, 1998