aaahhhrrggghhhh
Programmer
Hi all.
I have a form that has a drivebox. I need to know when the user physically ejects the CD from the drive that the drivebox is currently viewing.
1. User puts cd into drive
2. User selects the drive letter from the drivebox
3. User presses the button on the cd rom drive to eject it.
4. If the cd is extracted from the drive plate, therefore removed, how can I get VB to call a specific function one this happens? Easy Cd Creator does it if you try to eject a CD as it is writing, so hopefully its possible (I'm sure the writers of EasyCD creator used C++)
I thaught about using a timer to check constantly what has been removed since the last check, but this would be resource intensive, and basically against the point of using callbacks. I am presuming that the windows API would probably be rearing its head here somewhere, but I cant find the function to do it.
Please can anybody help?
Cheers.
Dont be small. be BIG
I have a form that has a drivebox. I need to know when the user physically ejects the CD from the drive that the drivebox is currently viewing.
1. User puts cd into drive
2. User selects the drive letter from the drivebox
3. User presses the button on the cd rom drive to eject it.
4. If the cd is extracted from the drive plate, therefore removed, how can I get VB to call a specific function one this happens? Easy Cd Creator does it if you try to eject a CD as it is writing, so hopefully its possible (I'm sure the writers of EasyCD creator used C++)
I thaught about using a timer to check constantly what has been removed since the last check, but this would be resource intensive, and basically against the point of using callbacks. I am presuming that the windows API would probably be rearing its head here somewhere, but I cant find the function to do it.
Please can anybody help?
Cheers.
Dont be small. be BIG