Is there a way to detect and respond to the process / stop the process?

I would like to have a program that only runs in the background and detects when some process starts and hopefully prevents it from starting and then react to it somehow, on Windows. Specifically, my staff will install "epic failure" on any computer that forgets to lock it for 2 seconds and gets coffee or goes to the toilet. I would like you to have protection against this executable, and perhaps the computer said something like "no, you are the one that fails." I know that some root sets can do this, although obviously I would not like to use something like this.

0


a source to share


1 answer


It's not hard to do, you can use the EnumProcess or Toolhelp API to get processes, you can write a service to do this every time that often and then kill the offending PID with TerminateProcess.



+1


a source







All Articles