Results 1 to 11 of 11

Thread: Lock CD inside cd-rom drive.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Højslev, None, Denmark
    Posts
    75

    Talking

    How do i lock a cd inside the cd-drive, so that you can't open it by pressing the eject button.
    Queen ROCKS!!!!!

  2. #2
    Guest
    unfortunately, you can try it however,
    most cd-roms have a very small pin hole
    right under the tray...

    this is used in the likely event if
    a programmer has written a program that
    locks a cd in the cd-rom in this manner
    to retrieve the cd:

    straighten out a small paperclip and insert
    it into this hole and Voila!!

    Out pops the tray....

    will wonders never cease?

  3. #3
    New Member
    Join Date
    May 2000
    Posts
    5
    Use Super Glue...
    Joker me!

  4. #4
    Guest
    You could do it through a timer, of course, it would open, but then close right away.

    Code:
    Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal _
    lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength _
    As Long, ByVal hwndCallback As Long) As Long
    
    
    Private Sub Timer1_Timer()
    
        Dim lngReturn As Long
        Dim strReturn As Long
        lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)
        DoEvents
        
    End Sub

  5. #5
    Addicted Member Rudy's Avatar
    Join Date
    Sep 2000
    Location
    BC, Canada
    Posts
    198
    hum....i think that the guy want to know how to lock it like when u burn a cd u can't open the drive, im not sure if you can do that with a normal cd drive but anywayz hopefully some1 will be able to help ya
    *Rudy^
    Visual Studio 6 Ent. SP5
    Windows 2000 SP4
    Windows XP SP1a

  6. #6
    Addicted Member Ramandeep's Avatar
    Join Date
    Feb 2000
    Posts
    158
    Why would you want to lock the CD drive???

    Are you trying to write some sort of program to piss people off? Or you trying to mess up you schools computer drives?

  7. #7
    Addicted Member Rudy's Avatar
    Join Date
    Sep 2000
    Location
    BC, Canada
    Posts
    198
    hum...yah got a point there, it can be usefull for burning software because if u open the drive u'll srew everything up but i don't see anything else yah could do with that....
    *Rudy^
    Visual Studio 6 Ent. SP5
    Windows 2000 SP4
    Windows XP SP1a

  8. #8
    Guest
    I'm not sure that would work for the CD-ROMs that have no trays.

  9. #9
    Member
    Join Date
    Nov 2000
    Posts
    62
    You won't be able to lock it with vb code. You very well might be able to make it work in assembly though.

  10. #10
    New Member
    Join Date
    Aug 2002
    Posts
    8
    Hmm wow this is now a very old thread!
    ... but if anybody is interested I asked this question just recently and I did come up with some sort of solution. I have some C code that will do it but I only have the code to do it in WinNT/2k/XP. It could be made into a DLL to use in VB or translated into VB. I'm not to sure yet which would be the most practical I haven't really looked at it in great detail. I am quite certain that this command works on CD Read Only drive as well! Anyway if anyones interested email me...

  11. #11
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width