|
-
Mar 11th, 2003, 09:55 AM
#1
Thread Starter
Addicted Member
VB - open & close CD door
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
Dim retvalue As Long
Dim ReturnString As String
Private Sub Command1_Click()
ReturnString = "0&"
retvalue = mciSendString("set CDAudio door open", ReturnString, 127, 0)
End Sub
Private Sub Command2_Click()
retvalue = mciSendString("set CDAudio door closed", ReturnString, 127, 0)
End Sub
regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|