Mail Archives: djgpp-workers/1997/10/19/11:20:38
On Fri, 17 Oct 1997, Bill Currie wrote:
> I don't know how reliable this is, but I just found out how to detect
> fat32 drives: attempt to read sector 0 (or any other, I imagine)
> using int 25,cx=0xffff. This will return with carry set and ax==1
> (invalid function) if the drive/partition is fat32. This function
> works as normal for non-fat32 drives (floppies, anyway).
To make sure it is indeed robust enough to be included in the library
(if we need it), you will have to try it on other types of drives as
well. CD-ROM, networked drives, NT drives, and DOSEmu environment are
the things that come to mind. We need to know how these react to
Int 25h.
> It seems W95 (IFSMGR?) remaps int 25/26 to
> int 21/7305 when accessing floppy drives (or non-fat32 drives??) or
> does the access itself
Doesn't this defeat the above test? If Windows does such remapping,
the call will succeed even on FAT32 drives, when you issue it from the
DOS box, no?
- Raw text -