I would like to ask how can I stop a process programmatically using C++?
Thanks.
This is a platform dependent question. Could you specify the platform you're worknig on?
For Windows you can use TerminateProcess
It's platform-dependent. On Unix you'd send the process a signal with the kill(2).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With