Link to home
Start Free TrialLog in
Avatar of nyt
nyt

asked on

Lock CDROM door

I am using Delphi 2.
How should I code in order to prevent the CDROM door from being opened?  The CDROM door should not open even when the user press the "Eject" button on the CDROM drive.  Of course, software ejecting, such as CD players should also be prevented.
Thx!
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Romi Kuntsman
I tried this code, but i couldn't unlock my drive without using 'DriveEject' which ofcourse ejected my drive... :-(
So what about unlocking the CDROM drive?! (without ejecting it!!!)
Avatar of nyt
nyt

ASKER

Maybe different versions of Delphi would have different results.  However, it works fine for my D2.
What works?! The answer doesn't contain a 'DriveUnlock' function!