Dobrý deň. Poradí mi niekto, prosím, ako by sa dalo zistiť, či je DVD mechanika otvorená, alebo zatvorená. Mám nižšie uvedený kod, krorý mi vyhadzuje rôzne čísla, ale neviem, čo to znamená
Public Class Form1
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
Dim lRet, a As String
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
lRet = mciSendString("status CDAudio door", "returnstring", 127, 0)
a = a & lRet & vbNewLine
MsgBox(a)
End Sub
End Class
|