2014.10.15 播放声音
[DllImport("winmm.dll")]
public static extern bool PlaySound(string pszSound, int hmod, int fdwSound); public const int SND_FILENAME = 0x00020000;
public const int SND_ASYNC = 0x0001;
private void Sound()
{
PlaySound(@"C:\alarm.wav", 1, SND_ASYNC | SND_FILENAME);
}