今天在MSN的核心讨论组上看到两篇文章.讨论的乃是应用程序是否没有响应.原文如下:
How is it possible to determine a process is "not responding" like NT Task
Manager do?
The heuristic works only for GUI processes, and consists of calling
SendMessageTimeOut() with SMTO_ABORTIFHUNG.
There is any API call to do the job, or this status is simply a deduction
based on process counters, like that returned from call to GetProcessTimes
API function?
Use SendMessageTimeout with a value of WM_NULL. That's all Task
...[ 查看全文 ]