I've been searching for a way to do this for a couple days and have
come up empty handed hopefully you can help me. I'm searching for a
way to first lock the CD-ROM when my program starts up. Then when the
eject button on the CD-ROM is pressed have it notify my program so
that I can unlock the drive, eject it and exit the program cleanly.
I'm wanting to do this to prevent windows from asking me to put the
CD back in when the program is running. The program also becomes
unusefull after the CD has been taken out. I suppose it should also be
noted that this program will be running from the CD.