...
......
......
Son düzenleme:
Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
private **** button1_Click(object sender, EventArgs e)
{
//SUSPEND
Process[] abcd = Process.GetProcesses();
List<IntPtr> arrayofthread = new List<IntPtr>();
List<IntPtr> arrayofmodules = new List<IntPtr>();
for (int i = 0; i < abcd.Length; i++)
{
if (abcd.ProcessName.IndexOf (textBox1.Text) != -1)
{
ProcessThreadCollection abcde = abcd.Threads;
int modulecount = abcd.Modules.Count;
int threadcount = abcd.Threads.Count;
foreach (ProcessThread pthread in abcde)
{
var opth = OpenThread(ThreadAccess.SUSPEND_RESUME, false, (uint)pthread.Id);
SuspendThread(opth);
}
}
}
}
private **** button2_Click(object sender, EventArgs e)
{
//RESUME
Process[] abcd = Process.GetProcesses();
List<IntPtr> arrayofthread = new List<IntPtr>();
List<IntPtr> arrayofmodules = new List<IntPtr>();
for (int i = 0; i < abcd.Length; i++)
{
if (abcd.ProcessName.IndexOf(textBox1.Text) != -1)
{
ProcessThreadCollection abcde = abcd.Threads;
int modulecount = abcd.Modules.Count;
int threadcount = abcd.Threads.Count;
foreach (ProcessThread pthread in abcde)
{
var opth = OpenThread(ThreadAccess.SUSPEND_RESUME, false, (uint)pthread.Id);
ResumeThread(opth);
}
}
}
}