I want to Terminate NT process unconditionally
Posted on 2002-07-04
Does anyone know if there is a DLL version of KILL.EXE. I want to be able to kill a process unconditionally.
Reason: I'm creating software that consists of a number of COM/DCOM objects and if one falls over, I want to ensure the rest of them will close and vanish out of the process list.
TerminateProcess doesn't kill them, either that or I'm doing something wrong. I've got the ProcessIDs of the processes and calling TerminateProcess, but they are still in the task list.
It has to be a DLL call. I can incorporate KILL into the app, but that throws up loads of Command windows (not a pretty sight).
All help gratefully received.