Is it possible to capture the task manager end process of a windows application within the same windows application itself? I am using a C# 2.0 win app and I would like to d
No, it is not possible to hook the operating system's decision to end a process. Note, this is not done by task manger, ending a process is the responsibility of the kernel.
You will need to do two things here:
Here are a three links to Raymond's blog explaining why you cannot do what you are asking.
Also, I addressed a similar StackOverflow question here.