Keep Alive Application:
The application to be built will be refered to as the Watchdog below.
The user is myself. Windows 7 computer. No one else will be using this program.
Does not use up lots of resources / Interfere with computer use.
Works on my Windows 7 computer.
Needs to keep one running exe process alive. If that process is closed, for example by the task manager, it runs the exe file again soon after.
The Watchdog can not be killed or closed by the user in any conventient or conventional way, especially through the taskmanager.
The watchdog has a password input option that will disable it (therefore allowing the process to be killed).
Once the password is correctly entered, it wil take X
minutes to disable the watchdog. This password serves as an emergency watchdog disabler. The password will be long and complex so I can't memorize it.
How watchdog works Idea:
The watchdog consists of 2 processes. Process A and Process B watch each other. If process A is killed through task manager, B notices that and runs A again. If B is killed in task manager, A notices and runs it again. Since task manager can only kill one process at a time, A and B will watch eachother and keep each other running before I can kil both.
Process A additionally watches the program I need to keep alive.
Alternative Ideas (that may or may not be possible):
Alternative 1 - An alternative idea would be to somehow discuss the watchdog as a process like svchost so the user would not know which process it the real watchdog and make it too risky to try to close an svchost process.
Altenrative 4 - Anything you can think of if it is better or you don't think above ideas can work. I just want to prevent the user from being able to close the exe of choice unless a password is entered.