Hello Eric,

On 31 May 2021, at 14:39, Eric Auer wrote:

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



this helps for new applications or applications where we have the source, but it does not help with all the existing applications (possibly closed source).

If I understand correctly, the desired effect would be that access to floppy B: without a physical 2nd floppy in the system will return an error to the application instead of the DOS kernel intercepting the access and prompt for a floppy change.

This might already be possible with the available drivers/config.sys options.

Greetings

Carsten


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

Reply via email to