Hack Forums
[.NET] Start and stop Proccess when task manager opens - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Start and stop Proccess when task manager opens (/showthread.php?tid=5856774)



Start and stop Proccess when task manager opens - PabloEscarNark - Jul 2, 2018

Can someone help me I'm trying to look for code snippets on how to stop a service when task manager starts and start it when its closed? Is this possible I know people are doing it with bots etc.

Any helps appreciated  ✌


RE: Start and stop Proccess when task manager opens - flAmingw0rm - Jul 2, 2018

You can use this method: https://msdn.microsoft.com/en-us/library/1f3ys1f9(v=vs.110).aspx to check for processes and see if Task Manager is active.


RE: Start and stop Proccess when task manager opens - Nick (Name) - Jul 2, 2018

Took a bit from this source, to put together something that would be useful in your case. This uses WMI to watch processes for when they start and terminate, it's not as fast but definitely works.

Console Project : https://pastebin.com/aDT5VXiw


RE: Start and stop Proccess when task manager opens - PabloEscarNark - Jul 3, 2018

cheers lads, helped alot!