Reputation: 233
Is there a way to know when a process is hung? is there a win32 call for this?
Upvotes: 7
Views: 3089
Reputation: 847
Just for other people passing by: It might be easier to use IsHungAppWindow.
Upvotes: 7
Reputation: 490108
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).
Upvotes: 12