[DllImport("kernel32.dll")]//指定dll文件 public static extern bool Beep(int frequency, int duration);//dll文件中的函數訪問