Play a sound file

  • Thread starter Thread starter Hai Ly Hoang
  • Start date Start date
Hi,

You have to P?Invoke :

[DllImport("winmm.dll")]
public static extern int sndPlaySound(string lpszSoundName , int uFlags)

[DllImport("user32.dll")]
private static extern bool MessageBeep(int type);

Take a look at thos functions in the Windows API

Cheers,
 
Back
Top