.net里如何监控进程?用c#写

2024-12-11 18:41:27
推荐回答(2个)
回答1:

using System.Diagnostics;

Process[] getProcessName = Process.GetProcesses();
foreach (Process pro in getProcessName)
{
if (pro.ProcessName ==“iexplore.exe”)
{
return true;

}
}

回答2:

Process && ProcessInfo建议你去看看