TerminateProcess?

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.
 
J

John Phillips

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?
 
D

Dick Monahan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top