I am running Apache on windows. I use rotatelogs.exe.
Apache starts multiple processes running cmd which runs rotatelogs.exe.

When I restart Apache, all these cmd.exe and rotatelogs.exe processes 
are left running.

I can use Process32First/Process32Next to find these processes.

Process32First/Process32Next returns a TProcessEntry32 which contains 
th32ProcessID.

I pass th32ProcessID to TerminateProcess which always fails.

Is TProcessEntry32.th32ProcessID the correct value to be passing to 
TerminateProcess().

If not, how do I get from TProcessEntry32.th32ProcessID to the correct 
value.

If it is, what do I need to do to actually kill the process?


Doug

Reply via email to