[DllImport("User32.dll")]
public static extern int MessageBoxA(int h, string m, string c, int type);
private void button1_Click(object sender, System.EventArgs e)
{
MessageBoxA(0,"API函数测试,测试成功!!!","API函数测试",1);
}