views:

55

answers:

1

Is there a way to know when a process is hung? is there a win32 call for this?

+4  A: 

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).

Jerry Coffin