Windows只有这两种钩子。不过你可以在消息到达的时候判断GetFocus返回的窗口的进程ID
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP