摘要:
当发生某些事件的时候,播放提示音提醒用户。方法一:[DllImport("coredll.dll")]private static extern bool PlaySound(string pszSound, IntPtr hmod, UInt32 fdwSound);/// <summary>/// 测试方法/// </summary>private static void PlayScheduleAlarmSound(){ string file = @"Windows\alarm.wav"; PlaySound(file, 阅读全文