CodePudding user response:
First, defining the concept of no response...CodePudding user response:
Is not response to connect, or unable to switch to normal display software and interfaceCodePudding user response:
Can use Windows API function: IsHungAppWindow (user32. DLL), to determine whether the application response, however, the MSDN tip this function may change or delete in future versions, do best judgment, SendMessageTimeout sends WM_NULL message can also judge that window () function checks whether the response,CodePudding user response:
Is there any other way?CodePudding user response:
SendMessageTimeout function sends WM_NULL message might be wronglyCodePudding user response:
The mentioned two ways are the MSDN, is relatively simple, the boundaries of response does not response is not so distinct, if there is a misjudgment, scoring a variety of situations, the critical value the need to adjust, the software is constantly updated development, don't have enough once and for all, figure out whether connection response, link directly to determine the return value is the easiest way,CodePudding user response:
If they were all write their own programs, to be a watchdog. Dog will not howl, you die!CodePudding user response:
But not every program with a dogCodePudding user response:
Use the IsHungAppWindowCodePudding user response:
Thread for a heartbeat, heart stopped, it also died,CodePudding user response:
The enumeration process, process ID, WaitForSingleObject whether there is a decision processCodePudding user response:
Process ID does not exist is to say, but if the actual process has no response of the process ID, this is the problem to be solved by this post,CodePudding user response:
Thread for a heartbeat, heart stopped, and it also diedThis I do not know the specific realization method, whether to send controlled thread heartbeat package? Not please elaborate
CodePudding user response: