IPC - win32
-
I want to implement Process Communication in visual C. Like if a process is running, i want to write a code which can cause that process to stop or shutdown or a code which detect that a certain process has been start and it should be stopped. Or can any one give me a good site on IPC to implement the idea above. Thanks in advance -oam
-
I want to implement Process Communication in visual C. Like if a process is running, i want to write a code which can cause that process to stop or shutdown or a code which detect that a certain process has been start and it should be stopped. Or can any one give me a good site on IPC to implement the idea above. Thanks in advance -oam
Hi First of all, call EnumProcess to get all the processes running in the system. Then call OpenProcess to open the running proccess. You will have got a handle the required Process by now. Set the required access right while opening the process. Now call TerminateProcess to terminate the process. Hope this would work for you Regards The Best Relligion is Science. Once you understand it, you will know God.
-
Hi First of all, call EnumProcess to get all the processes running in the system. Then call OpenProcess to open the running proccess. You will have got a handle the required Process by now. Set the required access right while opening the process. Now call TerminateProcess to terminate the process. Hope this would work for you Regards The Best Relligion is Science. Once you understand it, you will know God.
-
I understand the first paragraph of your comment, but i don't understand if the program will send a message to the running process. I wanted something that will communicate with the running process in many ways. oam