一个全局钩子放在Dll中。
当return 非0值之后,这个消息就被打断了。
其他的窗口就不会接收到消息。
我怎么才能让这个消息继续往下传递。
我这边也可以处理这个消息。比如键盘消息。

解决方案 »

  1.   

    Calling CallNextHookEx is optional, but it is highly recommended; otherwise, other applications that have installed hooks will not receive hook notifications and may behave incorrectly as a result. You should call CallNextHookEx unless you absolutely need to prevent the notification from being seen by other applications. 
      

  2.   

    我理解错了,我以为你指的往下传递是传递给消息处理函数。传给下一个钩子:
    CallNextHookEx传给Windows消息处理函数:
    DefWindowProc