Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleOpen and close the CD drive
KeywordsCD ROM, CD drive, open drive, open CD
CategoriesMiscellany, Windows
 

Thanks to Robert Flowers.

Use the mciSendString API function.

 
Private Sub cmdOpen_Click()
    mciSendString "Set CDAudio Door Open Wait", 0&, 0&, 0&
End Sub

Private Sub cmdClose_Click()
    mciSendString "Set CDAudio Door Closed Wait", 0&, 0&, 0&
End Sub
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated