Code needs to be alerted if the Floppy drive "ready" state has changed

J

Just Me

In code I check to see if the Floppy drive is ready and display it's state.

But if the user inserts or removes a floppy disk I need an event or a
Wndproc message to cause the code to display the new state.

Is the some way the code can be alerted to the fact that a removable disk
drive's state changed?


I wonder if the above isn't clear.
Think of Windows Explorer like app showing
31/2 Floppy (A:) {Not Ready}

If the floppy "ready" state changes the code needs to be notified so that
the display can be changed.

I could, for example, have a timer tick event periodically check the drive
but hope that is not the only way to do it.

Thanks in advance





Thanks
 
M

Mohamoss

Hi You !
one option you would think of it to use a different thread to check on the
driver status periodically( every certain time interval ) .
Mohamed Mafhouz
 
J

Just Me

Only one thing:

If in the thread I periodically check to see if the floppy is ready the
drive will each time make a little noise.

I've been up against this before and could never find a way to check to see
if the floppy drive is ready without making the drive make that grinding
noise.

Do you know a way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top