I am creating an application in VS 2019. It should not be closed by task manager.
For ex, McAfee does not get closed in Windows task manager even when user tries to kill it. Same logic I want to implement in my app.
Should I create a C# Windows Service to achieve this ? But, I see a 'Services' tab in task manager, so I think Windows service also can be killed by task manager. Any help in this regard .
Tried below, but it didn't work-
https://stackoverflow.com/questions/10579446/capturing-application-exit-event-winforms
Thanks.