VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Open/Close the CD-Rom drive tray

by Anonymous (267 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Wed 1st December 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Open/Close the CD-Rom drive tray

Rate Open/Close the CD-Rom drive tray



Dim strReturn As Long

'To open the CD door, use this code:
lngReturn = mciSendString("set CDAudio door open", strReturn, 127, 0)

'To close the CD door, use this code:
lngReturn = mciSendString("set CDAudio door closed", strReturn, 127, 0)

Download this snippet    Add to My Saved Code

Open/Close the CD-Rom drive tray Comments

No comments have been posted about Open/Close the CD-Rom drive tray. Why not be the first to post a comment about Open/Close the CD-Rom drive tray.

Post your comment

Subject:
Message:
0/1000 characters