Home > Software design >  How do we prevent closing the application from the Task Manager?
How do we prevent closing the application from the Task Manager?

Time:01-03

Windows Application için,

Görev Yöneticisinden uygulamayı kapatmayı nasıl engelleriz? Nod32 Antivirüs uygulamasının yaptığı gibi kendi yazdığımız uygulamaya bunu nasıl yaparız?

for Windows Application, How do we prevent closing the application from the Task Manager? How do we do this to the application we wrote, as the Nod32 Antivirus application does?

enter image description here

CodePudding user response:

Anti-Virus software that is signed and have special contact with Microsoft are allowed to be part of ELAM/Protected processes.

You can try to do the same by writing a kernel driver and deny everyone the right to open a handle with terminate rights on your process. This is however a bit ugly and should be avoided if possible.

The sane solution is to write your "important" application as a Windows service, this will prevent normal users from stopping it.

It will not stop administrator users but that is OK because untrusted users should not be administrators.

CodePudding user response:

I pretty sure you don't.

You can catch the event when the user clic on the cross for close the application, but no more.

  • Related