2011年5月26日

摘要: 当发生某些事件的时候,播放提示音提醒用户。方法一:[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, 阅读全文
posted @ 2011-05-26 18:07 唯神能恕 阅读(442) 评论(0) 推荐(0) 编辑

导航