Option Explicit
Const MB_ICONHAND = &H10 ' Arrêt critique
Const MB_ICONQUESTION = &H20 ' Question
Const MB_ICONEXCLAMATION = &H30 ' Exclamation
Const MB_ICONASTERISK = &H40 ' Astérisque
Private Declare Function MessageBeep Lib "user32" _
(ByVal Son As Long) As Long
'÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
'÷ joue un son standard Windows ( de manière asynchrone )
'÷ Son = constantes MB_?? ci-dessus
'÷ retourne 0 en cas d'échec
'÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
Public Sub BeepMessage(Son As Long)
Dim ret As Long
ret = MessageBeep(Son)
End Sub