View Full Version : Eject CD
Trysko23
09-07-2003, 12:52 PM
Is there a way to to eject the cd when the program is closed
Bruce
09-07-2003, 02:23 PM
I have an .exe I can give ya as soon as my website is back up...Stay tuned.
element78
09-07-2003, 07:03 PM
Here you go.
Download this (http://www.allapi.net/php/redirect/redirect.php?action=download&id=404) (its a DLL made for opening/closing CD tray)
Put it in your project folder.
Set action: File > Call DLL Function
Settings for DLL:
Name: %SrcDir%\dsdrive.dll (or wherever you put it)
Function Name: Eject
Function Params: "d:",0,1 (or use %SrcDrv% var for the dir that AMS is located in)
Value Type: String
Return Type: __cdecl
Tested and works just fine /ubbthreads/images/icons/smile.gif
Only 5.5kb
Enjoy!
Adam
element78
09-07-2003, 07:04 PM
Oh, and also, that will work for any type of removable media (other than floppies).
So ZIP drives will work, etc. Good luck! /ubbthreads/images/icons/smile.gif
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.