PDA

View Full Version : process creation in c++


tycotrix
08-14-2003, 04:45 AM
How do i write a Win32 Console application that starts a new process such that its an instance of Notepad.exe? i want the program to output the Process ID of the created process and once my program has started the new process, it should monitor it by displaying a dot on the screen every second while until the Notepad process terminates. How do i terminate the process itself??. Pls help, i'm not sure how to create a process. Thanks.

Jason
08-14-2003, 06:50 PM
PID stands for process ID so to find out what the process id is just print PID. to terminate it do a kill PID and that will terminate it. I think thats how it all works.

Jason