Created
November 20, 2016 21:35
-
-
Save KingCprey/1b7290359e0a246c402cbf29175f9efc to your computer and use it in GitHub Desktop.
VB.NET code to open and close cd tray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal Command As String, ByVal ReturnString As String, ByVal ReturnLength As Long, ByVal hWnd As Long) As Long | |
'Open CD Drive | |
'mciSendString("set cdaudio door open",0,0,0) | |
'Close CD Drive | |
'mciSendString("set cdaudio door closed",0,0,0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment