in win32A hook is a point in the system message-handling mechanism where an application can install a subroutine to monitor the message traffic in the system and process certain types of messages before they reach the target window procedure. 
-msdn

解决方案 »

  1.   

    钩子,举例讲就是 一个过程(A)调用另一个过程(B),我们如果想在其中加入自己的过程,让A先调用我们的过程,然后再调用B过程,我们的过程就是一个钩子。(名字也很形象)。钩子的主要作用正如你见到的就是拦截,Win32就给我们提供了拦截消息的钩子机制,使消息在传递过程中能
    被我们拦截.(祥见MCSD)
      

  2.   

    hook是钩子,你可以用它来钓鱼,当然,这条鱼是windows里最重要的“消息”,消息都被你钓走了,你就可以做很多事了(为所欲为),我们曾经用钩子方法取代了windows nt 的登陆窗口