Trapping the Kill of a process in Task Manager
-
Hi , I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS. I have a C**# .NET** windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application. All these Closing and Handle destroying events are called only when I close the application. Please help me in finding a solution for the same. Thanks and Regards,
-
Hi , I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS. I have a C**# .NET** windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application. All these Closing and Handle destroying events are called only when I close the application. Please help me in finding a solution for the same. Thanks and Regards,
-
Hi , I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS. I have a C**# .NET** windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application. All these Closing and Handle destroying events are called only when I close the application. Please help me in finding a solution for the same. Thanks and Regards,
You can't. Killing a process means the OS unceremoniously rips it out of memory. If an app were hung, and the OS notified it that it was being killed, then what? The app is hung and can't respond. An app could also do all sorts of Bad Things in response (like a virus could run another copy of itself). --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD
-
Hi , I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS. I have a C**# .NET** windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application. All these Closing and Handle destroying events are called only when I close the application. Please help me in finding a solution for the same. Thanks and Regards,
the best technique (and only technique :-D) for this i have seen is to run two processes, process_a.exe and process_b.exe In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again. please dont send me a virus ;P [[[ sig goes here ]]]
-
the best technique (and only technique :-D) for this i have seen is to run two processes, process_a.exe and process_b.exe In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again. please dont send me a virus ;P [[[ sig goes here ]]]
Most viruses these days seem to be using this technique... (Re.."In each create and open a handle of the other process, and wait for close notification of the other process, when you get that notify, just shell the process again." ) How can it be countered .. programmatically or otherwise? Any ideas?
-
Hi , I have a problem for which, I found no solution till now. Would be very happy if you could help me in this. This is in Windows OS. I have a C**# .NET** windows application running. I go to TaskManager and kill the process. Now, I want my application to be aware of this killing.I tried all the WIN API's and events too but nothing is fired back to the application. All these Closing and Handle destroying events are called only when I close the application. Please help me in finding a solution for the same. Thanks and Regards,
Hi Manivannan: Itz by design. When you select 'End Process', did you go through the warning: "Terminating a process can cause undesirable results including loss of data and system instability. The process will not be given a chance to save its state or data before it is terminated. Are you sure you want to terminate the process?" Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/