VC如何判断窗口是否无响应

来源:互联网 发布:网络信息安全工作方案 编辑:程序博客网 时间:2024/04/30 14:53

今天看了资料,有一个函数可以实现这个功能的,只是平时没有看。

IsHungAppWindow 

 

You call the IsHungAppWindow function to determine if Microsoft Windows considers that a specified application is not responding. An application is considered to be not responding if it is not waiting for input, is not in startup processing, and has not called PeekMessage within the internal timeout period of 5 seconds.

 

Returns TRUE if the window stops responding, otherwise returns FALSE. Ghost windows always return TRUE.

原创粉丝点击