我想得到另外一个进程的所有消息这个第四个参数怎么写啊  这个函数不太会用 如果可以给我简单的例子那就最好了我只有40分了 呵呵

解决方案 »

  1.   

    鬼才知道SetWindowsHookExzF是谁提供的第三方函数。
      

  2.   

    dwThreadId
    [in] Specifies the identifier of the thread with which the hook procedure is to be associated. If this parameter is zero, the hook procedure is associated with all existing threads running in the same desktop as the calling thread. 如果你想hook某个特殊线程,则设置那个线程序ID,如果你想hook所有的进程,则设置为NULL.
      

  3.   

    我想HOOK的是一个进程的  如果是所有进程 如果能够分辨哪个消息是那个进程的也行如何能够获得其他进程的窗口句柄 我就是HOOK消息 然后做一些修改有些小游戏 设置的按键位置很不好  如果HOOK消息  然后做一些修改 这个能吧