By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,908 Members | 2,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,908 IT Pros & Developers. It's quick & easy.

Detecting a kill process.

P: n/a
How can a VB program detect a kill process which was used to close it down.
I have a routine that detects when a user exits the program and I can track
the session times. But how can I detect when a kill process was done on the
process either by the task manager or by Citrix for example?

Bill
Oct 5 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
AFAIK

If a process is forcefully killed by the taskmanager you can not detect
this or cancell this
in all other shutdown situations you can handle the onshutdown event
handler
There was once a question here in the group , how someone could detect that
there program was forcefully shutdown
in my opinion this can only be done with a guardian program the main app c
watches the guardian and the guardian watches the main app
in this way you have a 100% sure event .

Programs that uses this aproach are MSSQL , Firebird database ( where it is
actually called guardian )

regards

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com

"news.microsoft.com" <bi*******@charter.netschreef in bericht
news:eh**************@TK2MSFTNGP02.phx.gbl...
How can a VB program detect a kill process which was used to close it
down. I have a routine that detects when a user exits the program and I
can track the session times. But how can I detect when a kill process was
done on the process either by the task manager or by Citrix for example?

Bill


Oct 5 '08 #2

P: n/a
What if you hide the process from the Task Manager instead? Even root kits
simply hide themselves from Task Manager.

http://www.delphifaq.com/faq/delphi_...API/f514.shtml
http://w-shadow.com/blog/2006/09/21/...t-taskmanager/
"news.microsoft.com" <bi*******@charter.netwrote in message
news:eh**************@TK2MSFTNGP02.phx.gbl...
How can a VB program detect a kill process which was used to close it
down. I have a routine that detects when a user exits the program and I
can track the session times. But how can I detect when a kill process was
done on the process either by the task manager or by Citrix for example?

Bill


Oct 6 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.