Cags said:
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As System.Text.StringBuilder, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
'Eject:
mciSendString("set CDAudio door open", Nothing, 127, 0)
'Inject:
mciSendString("set CDAudio door closed", Nothing, 127, 0)
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (_
ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, _
ByVal uReturnLength As Int32, _
ByVal hwndCallback As Int32) As Int32
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (_
ByVal lpstrCommand As String, _
ByVal lpstrReturnString As System.Text.StringBuilder, _
ByVal uReturnLength As Int32, _
ByVal hwndCallback As Int32) As Int32