|
-
Nov 8th, 2000, 07:14 AM
#1
Thread Starter
Lively Member
How do i lock a cd inside the cd-drive, so that you can't open it by pressing the eject button.
-
Nov 8th, 2000, 01:58 PM
#2
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?
-
Nov 8th, 2000, 02:24 PM
#3
New Member
Use Super Glue...
-
Nov 8th, 2000, 03:11 PM
#4
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
-
Nov 8th, 2000, 03:34 PM
#5
Addicted Member
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
-
Nov 8th, 2000, 04:46 PM
#6
Addicted Member
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?
-
Nov 8th, 2000, 06:40 PM
#7
Addicted Member
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
-
Nov 8th, 2000, 08:55 PM
#8
I'm not sure that would work for the CD-ROMs that have no trays.
-
Nov 8th, 2000, 09:37 PM
#9
Member
You won't be able to lock it with vb code. You very well might be able to make it work in assembly though.
-
Aug 5th, 2002, 09:18 AM
#10
New Member
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...
-
Aug 17th, 2002, 04:53 AM
#11
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|