cs_ghuysmans99
Messages postés3982Date d'inscriptionjeudi 14 juillet 2005StatutMembreDernière intervention30 juin 201316 9 juil. 2009 à 10:23
Option Explicit
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
Public Sub CDTray(Closed As Boolean)
Dim s As String If Closed Then s "closed" Else s "open"
mciSendString "set CDAudio door " & s, vbNull, 0, Me.hWnd
End Sub ,