Hi Mercury, Steve, Carsten and Ladislav:

You are all ignoring the fact that you can simply use the already
existing API to provide your own, graphical floppy change (or DJ
mechanism) dialogue. There is no need to re-invent the wheel!

INT 2F CU - DOS 5+ - FLOPPY-DISK LOGICAL DRIVE CHANGE NOTIFICATION
        AX = 4A00h
        CX = 0000h
        DH = new drive number
        DL = current drive number
Return: CX = FFFFh to skip "Insert diskette for drive X:" message
Note:   called by MS-DOS 5.0+ IO.SYS just before displaying the message
          "Insert diskette for drive X:" on single-floppy systems

Your apps can hook int 2f, function 4a00. If it returns cx=-1 then
DOS will assume that you have already asked the user to switch to
the new disk. DOS will not show a text message about that and will
not wait for keyboard input if you do this.
Eric




_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to