我想把那个LastMsgBoxInfo改成截取WSOCK32.DLL里的connect()函数,改了半天总是不行(错误提示为:..\22-lastmsgboxinfolib\apihook.cpp,line 60:m_pfnOrig!=NULL),有大侠能帮一下忙吗?

解决方案 »

  1.   

    Hi
       看一下这个帖子,http://www.csdn.net/expert/topic/611/611265.xml?temp=.1606867,其中Neville(昨夜流星ms)的回复,那就是原因,但是,send无法hook,找不到原因,也没人合理解释。
      

  2.   

    看看我的主页,很多联众补丁
    www.oldworm.comhook api有很多实现,你们都把眼光盯在Jeffrey Richter的modify import table上,这种办法也只能解决一部分问题,并不是什么情况下都可以使用的。
      

  3.   

    我编的时候,也遇到过m_pfnOrig!=NULL~
    但是忘了是怎么一回事了~
    我在网吧~
    没有源码~
    我不改了哪里了~
    忘了~
    :)
      

  4.   

    看一下这个帖子:
    http://www.csdn.net/expert/topic/712/712196.xml?temp=.4249994
      

  5.   

    Once the application installs a system-wide hook, the operating system maps the DLL into the address space in each of its client processes. So choose dll the dll will not unload after application.
      

  6.   

    By The Way, Remember To Store The Handle Obtained By SetWindowsHookEx() in Shared Data Section,Because ..
    A System-Wide Hook Is Loaded By Multiple  Precesses 
    That Don't Share The Same Address Space.