api windows + shutdown a process with his handle
Posted on 2000-02-17
I have two executables and I want they comunicate themselves with messages.
When I launch the first program, I have a timer witch list all the Windows and I can get their handles. Then, I send every 5 seconds a lots of messages until the second program answer one of them.
When I launch the second program, if it recieves a message, it sends his handle to the first program as a parameter.
In my first program, when I want to terminate the process of the second program with his handle, it doesn't work.
Can you tell me what should I do to terminate the second program with his handle. Is there a API Windows' function as the same as TerminateProcess but with the handle of a Window and not with the handle of a process.