473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Detecting a kill process.

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
2 3905
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
10
by: Fred | last post by:
There is a setting in INIT.ORA that has the unintended side-effect of making sure the ALTER SYSTEM KILL SESSION command has immediate affect. Without this setting, I've seen some instances where...
3
by: pattanawadee | last post by:
Deall All, Could anybody suggestion me How to kill all inherrit processes (sibling child,previous and parent process) in the case I know only child process id and user id, For example I strart...
6
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The...
1
by: Manfred Braun | last post by:
Hi All, I am writing a tool, which should monitor some exe-processes, which are not very solid. Th main function is to re-start them, if they hung, but this is complicated. I can detect things...
0
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
5
by: Dino Buljubasic | last post by:
My application can allow a user to open a file for viewing by fetching file data from database, creating the file in a temp directory and starting appropriate process (i.e. Adobe or any other...
3
by: Graeme Hinchliffe | last post by:
Hiya I have now managed to get my code to function correctly for a none present db, and one that is shutdown whilst it is being used. In both cases my code functions and happily recovers on the...
4
by: Richard Rossel | last post by:
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.