Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jan : Kill task in remote computer

www.cryer.info
Managed Newsgroup Archive

Kill task in remote computer

Subject:Kill task in remote computer
Posted by:"Mikael Lenfors" (mika..@lenfors.se)
Date:Mon, 8 Jan 2007 16:09:16

Hello!

I have a "watchdog" program running in a remote machine to monitor a service
application running on a server. When the service "fails" I try to stop the
service and then restart it. This works most of the time but sometime the
service is stuck and I fail to stop it. I can then kill the process with
TaskKill.exe or other utilities and then restart the service. Now I want
this functionallity built into my watchdog program. Can anyone help me with
what function to use...

Regards, Mikael

Replies:

www.cryer.info
Managed Newsgroup Archive