/* par Alain VIZZINI / parce ke les gars ki font des Tut sont trop nul pour en faire des ki marchent !!! */ using System; //necessaire pour le DllImport using System.Runtime.InteropServices; class SndPlay{ [DllImport("winmm.dll")] public static extern long PlaySound(String lpszName, long hModule, long dwFlags); public static void Main (String []args) { String fName = @"d:\C#Work\callapi\snd.wav"; PlaySound(fName, 0, 0); } }