VB Code:
  1. Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
  2. (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
  3.  
  4. Sub PlayWave()
  5.  
  6.     fileName = "C:\Windows\Media\MicrosoftSound.Wav"
  7.  
  8.     sndPlaySound fileName,0
  9.  
  10. End Sub