Hi,
I would like to ask how can I stop a process programatically using C++?
Thanks.
Hi,
I would like to ask how can I stop a process programatically using C++?
Thanks.
It's platform-dependent. On Unix you'd send the process a signal with the kill(2)
.
This is a platform dependent question. Could you specify the platform you're worknig on?
For Windows you can use TerminateProcess
Use exit
function to terminate the calling process. If you want to terminate the process without executing destructors for objects of automatic or static storage duration you could use abort
function.