i am writing a program which includes a windows service and a GUI-program, because the windows service cannot directly communicate with windows.
It is a program which interacts which a server-daemon stopping pupils from logging in with one account at multiple workstations. (to prevent password sharing)
The GUI-process is launched using Windows autostart and runs with the users permissions. Because of that, the users can easily just kill the GUI-process. This is not good because the GUI-process is causing the logoff (and user message).
How can i stop users from killing the process?
I finally ended up using a alternative RunAs program, CPAU, to start the process as Administrator on logon. Doing this, students can atleast not kill it that easily using Taskmanager or similar.
I might also implement the method suggested by Jon later. This way, even if students somehow manage to kill the process they will not succeed.