473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
Nov 17 '05 #1
3 1752
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

Nov 17 '05 #2
Thanks, that sounds good.
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:V$***************@TK2MSFTNGXA01.phx.gbl...
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

Nov 17 '05 #3
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?


" Just Me" <gr****@a-znet.com> wrote in message
news:OR**************@TK2MSFTNGP15.phx.gbl...
Thanks, that sounds good.
"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:V$***************@TK2MSFTNGXA01.phx.gbl...
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


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: barbara_dave | last post by:
Hi all, I use GetLogicDrive to get all drives. when I use "for each.." loop searching each drive, I got error"A: drive not ready",... I want to seach some files which are in a drive, but I don't...
0
by: mrajsenkumar | last post by:
Hi I am using windowsCE 5.0, here i am try to deploy the project. but i got error message - "Connection failed. Device is not ready." tell me how to solve this problem.very urgent. i am using vs2005.
6
omerbutt
by: omerbutt | last post by:
hi there i am getting error in the statechange function .I am using html,ajax,php and mysql,it was running smooth and at once it started giving error here is the code function prof_info(fobj){...
1
by: simonbelmont | last post by:
Hi, The using the GET command with ajax works fine. Using POST only works if the data being retrieved is less than ~2400 bytes, otherwise it will be stuck in readyState = 3 and hang there. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.