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); 

}

posted on 2016-10-15 17:03  mol1995  阅读(103)  评论(0编辑  收藏  举报

导航