using System.Runtime.InteropServices; class test { [DllImport("kernel32.dll")] private static extern int Beep(int dwFreq ,int dwDuration) ; public static void Main() { int a=0X7FF; int b=1000; Beep(a,b); } } 涉及到API查询的可以参考我兄弟的文章 http://www.cnblogs.com/maxwolf/archive/2005/07/26/200741.html |
请发表评论