Головна‎ > ‎C# WPF‎ > ‎

Процеси

using System.Diagnostics;

Усі процеси
Process[] processlist = Process.GetProcesses();

foreach (Process theprocess in processlist)
{
     textBox.Text += theprocess.ProcessName + Environment.NewLine;
}


Видалити процес

foreach (Process proc in Process.GetProcessesByName("notepad"))
{
     proc.Kill();
}