进程被强制杀死时的进程退出代码 [英] Process Exit Code When Process is Killed Forcibly

查看:48
本文介绍了进程被强制杀死时的进程退出代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们在 Windows 中使用任务管理器结束进程命令杀死进程时,该进程是否仍会返回退出代码?如果是这样,它返回什么退出代码?谢谢

When we kill a process in Windows with Task Manager End Process command, will the process still return an exit code? And if so, what exit code it returns? Thanks

推荐答案

通常,使用 TerminateProcess.退出代码作为参数传递给此方法.

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

在任务管理器的情况下,退出代码设置为 1,但我不知道它是否记录在任何地方.

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

这篇关于进程被强制杀死时的进程退出代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆