Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Eject CD

  1. #1
    Join Date
    Sep 2003
    Posts
    26

    Eject CD

    Is there a way to to eject the cd when the program is closed

  2. #2
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Re: Eject CD

    I have an .exe I can give ya as soon as my website is back up...Stay tuned.

  3. #3
    Join Date
    May 2003
    Posts
    130

    Re: Eject CD

    Here you go.

    Download this (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 [img]/ubbthreads/images/icons/smile.gif[/img]
    Only 5.5kb

    Enjoy!
    Adam

  4. #4
    Join Date
    May 2003
    Posts
    130

    Re: Eject CD

    Oh, and also, that will work for any type of removable media (other than floppies).

    So ZIP drives will work, etc. Good luck! [img]/ubbthreads/images/icons/smile.gif[/img]

Posting Permissions

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