How can I prevent the user to end my program

  • Thread starter Thread starter JR
  • Start date Start date
J

JR

Hi,

I have a programm that user to end with ctrl-alt-del and "end service".
there is an option in the menu and I want the user to use that methode.

Jan
 
JR said:
Hi,

I have a programm that user to end with ctrl-alt-del and "end service".
there is an option in the menu and I want the user to use that methode.

Jan

There is no way to prevent that. The entire process is just disposed off
without notifying that process. If it were to ask permission and waited
for a response, you could never kill a process that's hung/stuck.
 
Run your service as another user (b.e. localsystem), a normal user can
only kill processes that run on his own account.
 
Back
Top