我试图杀死进程 "cheatengine-i386.exe" 但我得到错误 "Access Denied" 。
private void Form1_Load(object sender, EventArgs e)
{
Process[] runningProcesses = Process.GetProcesses();
foreach (Process process in runningProcesses)
{
// now check the modules of the process
foreach (ProcessModule module in process.Modules)
{
if (module.FileName.Equals("cheatengine-i386.exe"))
{
process.Kill();
}
}
}
}
}
}