Board index » delphi » Detecting drive ready in TPW 1.5

Detecting drive ready in TPW 1.5

Hi,
   I'm looking for a way to detect if a floppy drive is ready (diskette
inserted and door closed) in TPW 1.5, without Windows popping up a
dialog box. Under DOS I can do that using FindFirst, but under TPW
a dialog box pops up for FindFirst as well. Also, various ASM methods
using Int $13 seem to cause GPFs.

Any ideas?

Thanks,
    Eyal Doron

 

Re:Detecting drive ready in TPW 1.5


In article <4uq1q7$...@sun0.urz.uni-heidelberg.de>,
do...@mickey.mpi-hd.mpg.de (Eyal Doron) says:

Quote
>   I'm looking for a way to detect if a floppy drive is ready (diskette
>inserted and door closed) in TPW 1.5, without Windows popping up a
>dialog box. Under DOS I can do that using FindFirst, but under TPW
>a dialog box pops up for FindFirst as well. Also, various ASM methods
>using Int $13 seem to cause GPFs.

Don't ever call interrupts directly!!!!

Quote
>Any ideas?

SetErrorMode.

Bye,

-----------------------------------------------------------------------
  Zweitze de Vries                           zwei...@cyco.nl
  Cyco Software Development
  Handelskade 49
  Rijswijk, Netherlands                      (+31) 70 3954179

Other Threads