Bonjour, Qui connait le code pour éjecter le tiroir d'un cd ou dvd ou le code clsid pour l'éjection dans une application ? d'avance merci Michel
LE TROLL
Suite,
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou sur les tour un porte gobelet de café:
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 Sub Form_Load() Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub
Bonjour, Qui connait le code pour éjecter le tiroir d'un cd ou dvd ou le code clsid pour l'éjection dans une application ? d'avance merci Michel
Suite,
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou sur
les tour un porte gobelet de café:
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
Sub Form_Load()
Dim RetVal As Long
Dim RString As String
RString = Space$(128)
RetVal = mciSendString("set CDAudio door open", RString, 128, 0)
End Sub
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou sur les tour un porte gobelet de café:
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 Sub Form_Load() Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub
Bonjour, Qui connait le code pour éjecter le tiroir d'un cd ou dvd ou le code clsid pour l'éjection dans une application ? d'avance merci Michel
mg
merci et merci
"LE TROLL" <le a écrit dans le message de news:
Suite,
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou sur les tour un porte gobelet de café:
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 Sub Form_Load() Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub
Bonjour, Qui connait le code pour éjecter le tiroir d'un cd ou dvd ou le code clsid pour l'éjection dans une application ? d'avance merci Michel
merci
et
merci
"LE TROLL" <le troll@enfer.fr> a écrit dans le message de
news:31F50D77-D699-46B3-87C6-38914AF3E7F3@microsoft.com...
Suite,
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou
sur les tour un porte gobelet de café:
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
Sub Form_Load()
Dim RetVal As Long
Dim RString As String
RString = Space$(128)
RetVal = mciSendString("set CDAudio door open", RString, 128, 0)
End Sub
T'as plus qu'à copier coller, c'était même un virus pa méchant jadis, ou sur les tour un porte gobelet de café:
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 Sub Form_Load() Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On 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 Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub End Class
ca marche pas !! c'est vrai je suis sur vb 2008 express
autant pour moi !!
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On
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
Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim RetVal As Long
Dim RString As String
RString = Space$(128)
RetVal = mciSendString("set CDAudio door open", RString, 128, 0)
End Sub
End Class
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On 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 Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub End Class
ca marche pas !! c'est vrai je suis sur vb 2008 express
autant pour moi !!
mg
ah oui ca marche merci Cordialement :o)
"LE TROLL" <le a écrit dans le message de news:
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On 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 Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub End Class
ca marche pas !! c'est vrai je suis sur vb 2008 express
autant pour moi !!
ah oui ca marche
merci
Cordialement :o)
"LE TROLL" <le troll@enfer.fr> a écrit dans le message de
news:86BDE338-D808-4A83-8CC7-2C19C327A614@microsoft.com...
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On
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
Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim RetVal As Long
Dim RString As String
RString = Space$(128)
RetVal = mciSendString("set CDAudio door open", RString, 128, 0)
End Sub
End Class
Qu'est-ce que tu racontes ??? ça marche très bien sous vbNet :
Option Explicit On 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 Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim RetVal As Long Dim RString As String RString = Space$(128) RetVal = mciSendString("set CDAudio door open", RString, 128, 0) End Sub End Class