[英]Is there a way in windows to know if a process is not responding?
Is there a way to know when a process is hung? 有没有办法知道进程挂起的时间? is there a win32 call for this?
这是一个win32的电话吗?
You send it a WM_NULL
with SendMessageTimeout()
. 你用
SendMessageTimeout()
发送一个WM_NULL
。 If that times out after something like a second or three, it's not responding (though it might eventually, of course). 如果在第二或第三次之后超时,它就没有响应(当然,最终可能最终)。
只是为了路过的其他人:使用IsHungAppWindow可能更容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.