Process Exit Code When Process is Killed Forcibly Process Exit Code When Process is Killed Forcibly windows windows

Process Exit Code When Process is Killed Forcibly


In general, a process is terminated using TerminateProcess. The exit code is passed as a parameter to this method.

In the case of the task manager, the exit code is set to 1, but I don't know if it's documented anywhere.


Yes, it will return non-zero return code which will be wrapped in %ERRORLEVEL% variable.