Quick question - Ejecting C.D drive

Discussion in 'Archives' started by Thief, May 11, 2007.

Quick question - Ejecting C.D drive
  1. Unread #1 - May 11, 2007 at 8:29 PM
  2. Thief
    Referrals:
    0

    Thief Guest

    Quick question - Ejecting C.D drive

    What is the code to automatically eject the C.D drive?
     
  3. Unread #2 - May 11, 2007 at 11:11 PM
  4. nipplesandlicks
    Referrals:
    0

    nipplesandlicks Guest

    Quick question - Ejecting C.D drive

    isnt that a system file to do that?
     
  5. Unread #3 - May 12, 2007 at 12:12 AM
  6. Thief
    Referrals:
    0

    Thief Guest

    Quick question - Ejecting C.D drive

    I've seen it done before, but maybe I am wrong. Oh well, thank you anyway.
     
  7. Unread #4 - May 12, 2007 at 1:51 AM
  8. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Quick question - Ejecting C.D drive

    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
    
    mciSendString "set CDAudio door open", strReturn, 127, 0 'open
    
    mciSendString "set CDAudio door closed", strReturn, 127, 0 'close
     
  9. Unread #5 - May 12, 2007 at 9:47 AM
  10. Thief
    Referrals:
    0

    Thief Guest

    Quick question - Ejecting C.D drive

    Thanks Covey!
     
< omg omg!!!! Selling 4 Pins!?!! 1M EACH!! (OR LESS) | selling lvl 108 balanced out!!!!! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site