Article ID: 102870
Article Last Modified on 8/30/2004
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.
119591 How to Obtain Microsoft Support Files from Online Services
Additional query words: INT softlib BOOTSEC.EXE KBFILE
Keywords: kb16bitonly kbfile kbsample KB102870