How can I prevent the user to end my program

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
 
C

C-Services Holland b.v.

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.
 
T

Theo Verweij

Run your service as another user (b.e. localsystem), a normal user can
only kill processes that run on his own account.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top