In C++ is there a way to unconditionally kill a process?
No matter what state this process is in.
I know about TerminateProcess, but it can still fail. What if you don't want it to fail.
Like when you kill a process in Task Manager, it dies; no matter what. That's the kind of killing I'm looking for.
Not every process can be killed from Task Manager. This depends both on permissions and on process state. Some processes, hung in winsock can't be killed (and even Task Manager will hang).
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