Archived

This topic is now archived and is closed to further replies.

Checking if the HardDisk is active

This topic is 6114 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a vc++ command to get information about the current activity of the HardDisk/CDROM? I Basically need a command that will tell me if the HDD led is flashing (the hdd led on the PC case), and maybe also what drive is active, i.e. CDROM, HDD, and/or FDD.

Share this post


Link to post
Share on other sites
You could try using FindFirstChangeNotification and FindNextChangeNotification (as well as FindCloseChangeNotification) with the root path of any drive. Have is so that it returns if anything happens, anytime something happens the drive is being accessed. I''m not sure how to get this to more precise, but that should be a start.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/

Share this post


Link to post
Share on other sites