How to eject the cd rom using API.???
Printable View
How to eject the cd rom using API.???
Code:mciSendString "set cdaudio door open", vbNullString, 0, 0
mciSendString "set cdaudio door closed", vbNullString, 0, 0
You are missing the function declaration.
Code:Private 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