asmw
asmw

Reputation: 233

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?

Upvotes: 7

Views: 3089

Answers (2)

user23127
user23127

Reputation: 847

Just for other people passing by: It might be easier to use IsHungAppWindow.

Upvotes: 7

Jerry Coffin
Jerry Coffin

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

Related Questions