111,098
社区成员




[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;
/// <summary>
/// 播放声音
/// </summary>
public static void VoiceReminder()
{
string strPath = System.Windows.Forms.Application.StartupPath + "\\FailVoice.wav";
PlaySound(strPath, 0, SND_ASYNC | SND_FILENAME);//播放提示音乐
}