C# 实现系统报警

using System.Runtime.InteropServices;

 

[DllImport("kernel32.dll")] 
public static extern bool Beep(int freq,int duration);

public void PlayBeep()  
{  
     //调用  
     Beep(800,3000); 
}

posted @ 2010-08-17 15:39  海乐学习  阅读(3485)  评论(0编辑  收藏  举报