private void button4_Click(object sender, EventArgs e) { try { AgentDll.exit_target(); } catch (Exception ex) { MessageBox.Show("Agent关闭进程失败" + ex.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); WriteLog("Agent关闭进程失败" + ex.ToString()); } }