Terminate help
-
GDay everyone, Is there any way to terminate the child process from the parent process in C programming? Please give me an advice. Thanks
eric
eric_tran wrote:
terminate the child process from the parent process
TerminateProcess(). Also from MSDN: If you need to have one process terminate another process, the following steps provide a better solution: Have both processes call the RegisterWindowMessage function to create a private message. One process can terminate the other process by broadcasting the private message using the BroadcastSystemMessage function as follows: BroadcastSystemMessage( BSF_IGNORECURRENTTASK, // do not send message to this process BSM_APPLICATIONS, // broadcast only to applications private message, // message registered in previous step wParam, // message-specific value lParam ); // message-specific value The process receiving the private message calls ExitProcess to terminate its execution. See if either helps you...
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
GDay everyone, Is there any way to terminate the child process from the parent process in C programming? Please give me an advice. Thanks
eric
-
GDay everyone, Is there any way to terminate the child process from the parent process in C programming? Please give me an advice. Thanks
eric
How to create this process?
WhiteSky