Is there a way in windows to know if a process is not responding?
Is there a way to know when a process is hu开发者_JAVA技巧ng? is there a win32 call for this?
You send it a WM_NULL
with SendMessageTimeout()
. If that times out after something like a second or three, it's not responding (though it might eventually, of course).
Just for other people passing by: It might be easier to use IsHungAppWindow.
精彩评论