using System.Runtime.InteropServices;

 

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

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

相关文章:

  • 2021-08-23
  • 2021-11-26
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-12-26
  • 2021-07-07
  • 2021-12-19
猜你喜欢
  • 2021-12-03
  • 2021-11-30
  • 2022-12-23
  • 2021-06-29
  • 2021-12-26
  • 2021-04-23
  • 2021-12-05
相关资源
相似解决方案