在9x和2k中又有什么不同?谢谢!

解决方案 »

  1.   

    以 send  和 recv 为例
      

  2.   

    去截wsock32.dll
    分别截以下函数
    recv
    recvfrom
    send
    sendto
      

  3.   

    如果用API Hook的话9x和2k没什么不同的
      

  4.   

    应该截获 ws2_32.dll 这个,因为有时候拦截wsock32.dll拦截不到,但是拦截ws2_32.dll却能够拦截得到,至于为什么我不知道。
      

  5.   

    到底是哪个呢?有谁知道着2个DLL的具体关系吗?
      

  6.   

    ws2_32.dll应该是教高版本的,我开发时用的2000,使用Winsock2.h,对应ws2_32.dll,wsock32.dll可能对应winsock.h
      

  7.   

    关于WSOCK32.DLL
    under Windows NT, Windows Sockets support for 16-bit applications is based on WINSOCK.DLL. For 32-bit applications, the support is in WSOCK32.DLL
    而WSOCK32.DLL有关的SPI
    The SPI is intended to be used within all 32-bit implementations and versions of Microsoft® Windows® including Windows® NT® and Windows® 95®.
    这样看应是WSOCK32.DLL是新版过WSOCK32.DLL
      

  8.   

    写错了,应是:
    关于WSOCK32.DLL
    under Windows NT, Windows Sockets support for 16-bit applications is based on WINSOCK.DLL. For 32-bit applications, the support is in WSOCK32.DLL
    而Ws2_32.dl有关的SPI
    The SPI is intended to be used within all 32-bit implementations and versions of Microsoft® Windows® including Windows® NT® and Windows® 95®.
    这样看应是Ws2_32.dll新版过WSOCK32.DLL
      

  9.   

    那位大哥有这方面的源码,
    发我一份,不胜感激,
    [email protected]
      

  10.   

    应当截获ws2_32.dll
    从Win98/NT4开始,Windows支持WinSock2,而WinSock1成为2的功能子集。
    ws2_32.dll是实现WinSock2的,WinSock1和16位的WinSock2应用程序直接调用其它的dll,如wsock32.dll等,但这些dll只是做些转换和兼容性操作,最终都要调ws2_32.dll,ws2_32.dll再通过可能存在的LSP调用最底层的传输层实体。