PDA

View Full Version : Close the CD Tray


Eagle
08-09-2005, 10:04 AM
change:

DLLResult = DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Open\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);


to:

DLLResult = DLL.CallFunction("winmm.dll", "mciSendStringA", "\"Set CDAudio Door Closed\",0,0,0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);


seems to work fine..

(if DLLResult returns 'non zero' or in the range of 250 -270) ...it failed

Worm
08-09-2005, 10:24 AM
if you need to select the CD-ROM drive (more than one in a PC) then take a look here.

http://www.indigorose.com/forums/showpost.php?p=46013&postcount=7

Eagle
08-09-2005, 10:25 AM
thanks Mr Worm sir ... :lol

I humble myself at your feet

BTW: I could'nt get the CD_LOCK functionality work'in
(developer section)

Worm
08-09-2005, 10:30 AM
<Bugs Bunny> I knight the... Sir Loin of Beef, Sir Rhosis of the liver, Sir John of Naughtingham aquarter past three.</Bugs Bunny>

Worm
08-09-2005, 10:31 AM
I tried to get it to work in DLL format, but it only locked the CD while the DLL was loaded in memory. Maybe I could write an actual plugin that will do it.

thanks Mr Worm sir ... :lol

I humble myself at your feet

BTW: I could'nt get the CD_LOCK functionality work'in
(developer section)

Eagle
08-09-2005, 10:34 AM
I'll buy it..

..main reason is to get around the 'premature removal' of media
while copying files.. address me as Sir Gallahad, my good man.

Worm
08-09-2005, 11:11 AM
if you want to try it out, send me an email :)

brad
@
warmuskerken
dot
com

Eagle
08-09-2005, 11:18 AM
com'in your way ..give me 5... tks

PS: you have incoming...

Eagle
08-10-2005, 07:24 AM
'Sir Loin of Beef'..you got incoming ..sorrry did not get back to you sooner.

Eagle
08-19-2005, 12:40 PM
work'in like a treat Brad...are you considering any changes at present etc ? :cool

Worm
08-19-2005, 12:46 PM
work'in like a treat Brad...are you considering any changes at present etc ? :cool

Yep, workin on a new rev with some added features. Hopefully this weekend

Eagle
08-19-2005, 12:47 PM
Excellente ...not pushing..just ask'in ;)