TerminateProcess?

  • Thread starter Thread starter Dick Monahan
  • Start date Start date
D

Dick Monahan

Process 00 creates Processes 01-04.

After running for a while, Process 02 hung (a known problem with an external
device).

Process 00 detected the hang and did a TerminateProcess. The
TerminateProcess failed because "Access is denied."

I would expect that the process that created another process could terminate
it. Am I wrong? Is there some other way that Process 00 can kill Process
02?

Help.

Dick.
 
How did you get the handle to process 02? From CreateProcess()? If not,
are you sure that the handle has PROCESS_TERMINATE access?

The scenario as you've stated -=should=- work. Are there any details which
you forgot to give? Are any of these processes services for example?
 
I did get the handle from CreateProcess().

The processes run both as services and as command-line processes. This
functionality has not been tested in the service mode.

We just figured out the PROCESS_TERMINATE may be required, so we're going to
try it.

Dick.
 
Back
Top