From within a program, can you stop a completely outside program and later "restart" it


Do you have complete example code that demonstrates in someway to stop an external program using only it's PID and name or something, and later restart the exact same program?

I want to stop a program that is running on the computer. The program I want to stop is not running because of my program. I have the external running program's PID and name.

The main thing that I want to do is be able to restart the program that I stopped from within my program.

I currently don't know where the executable that I want to restart is on my computer.

Last edited on
Try DebugActiveProcess

Of course if you were on Unix it's just kill(pid, SIGSTOP)
Last edited on
Registered users can post here. Sign in or register to post.