using System;
System.Runtime.InteropServices;
class Beeper
{
DllImport("kernel32.dll")]//low level beep
public static extern bool Beep(int frequency,int duration);
static void Main()
{
Beep(1000,111);
}
}
什么是 DLL 导入属性,它到底是做什么的?