I asked this question just days before.
(Programming : Languages : C : Q.10236627 )
I accepted one of the answers, which is not correct after testing. So, I have to ask again.
In my program, I try to write sth to Drive A, so I need to check the status of A drive, the first is whether Drive A is formatted.
I think _bios_disk can't work, this one always work no matter the drive A is formatted or not. _dos_open also can't. when I use this one to access A drive, it will give me the Abort, Retry, and Fail, if it's not formatted. I don't want my end user to see this message. besides, I will lose control.
Any idea to detect whether A is formatted or how to disable the Abort, Retry, and Fail, or and a handler?