[Winpcap-users] Using Winpcap

Gianluca Varenni gianluca.varenni at cacetech.com
Fri Oct 3 20:33:46 GMT 2008


That is for windows 9x. You need to compile the version under packetntx for windows NT4/2000/XP/2003/Vista/2008.

GV
  ----- Original Message ----- 
  From: Subrahmanyam (Arun) 
  To: winpcap-users at winpcap.org 
  Sent: Friday, October 03, 2008 9:09 AM
  Subject: Re: [Winpcap-users] Using Winpcap


  Thank you very much for the response.

  I am using Packet32.c file(which is part of Packet9x DLL). In that file the execution flow comes to function "PacketGetAdapterNames" where it checks for certain registry entries,

  Status=RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Services\\class\\net",0,KEY_READ,&Key);

  here it fails, I've no such entries in my registry either.

  However I found another version of the same file which looks for:

  Status = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
                                     TEXT("SYSTEM\\ControlSet001\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}"),
                                                     0, KEY_READ, &AdapKey);

  but as the execution flow comes down to other functions RegEnumKey fails and it too returns FALSE,

  I guess I'm missing something crucial,
  Thanks,
  Subbu.



  On Thu, Oct 2, 2008 at 12:19 PM, Gianluca Varenni <gianluca.varenni at cacetech.com> wrote:

    Which DLLs did you compile?

    There is just one version of wpcap.dll, but there are multiple versions of packet.dll, depending on the OS you are running on. Apart from that, there is no difference (apart from the fact that the DLLs we provide are authenticode signed). during our build process, we compile the official DLLs and at the same time we create the ZIP with the official sources.

    Which OS are you running on?

    Have a nice day
    GV

      ----- Original Message ----- 
      From: Subrahmanyam (Arun) 
      To: winpcap-users at winpcap.org 
      Sent: Wednesday, October 01, 2008 2:13 PM
      Subject: Re: [Winpcap-users] Using Winpcap


      Hi,

      I'm sorry for the discrepancy in my earlier mail.

      Firstly, I used the developers pack and could detect my network devices.

      Then I downloaded the source code of winpcap from http://www.winpcap.org/devel.htm, i.e Download WinPcap 4.0.2 Source Code which is the latest version. I compiled the code and from these DLL's I'm unable to detect any of the network devices.

      It fails in "PacketGetAdapterNames" which actually looks for a registry entry. But I'm surpised how the binaries are working, is there any difference between the installer and the binaries I built.

      I have WinPCap installed also.

      Thanks,
      Subbu.



      On Wed, Oct 1, 2008 at 2:54 PM, Gianluca Varenni <gianluca.varenni at cacetech.com> wrote:

        The developer's pack doesn't contain the sources of WinPcap. It's a developer's pack to create WinPcap based applications. 
        In order to use WinPcap, you always need to install it on the target machine with the installer, you cannot just use the developer's pack and copy the DLLs.

        Let me know if this answers your question.

        Have a nice day
        GV

          ----- Original Message ----- 
          From: Subrahmanyam (Arun) 
          To: winpcap-users at winpcap.org 
          Sent: Wednesday, October 01, 2008 10:40 AM
          Subject: [Winpcap-users] Using Winpcap


          Hi All,

          I've downloaded winpcap source code( Download WinPcap 4.0.2 Developer's Pack )

          In a sample application when I use winpcap dll's (Packet.dll, WanPacket.dll, wpcap.dll) I am able to detect the network adapters.

          But with the downloaded and the latest source code I am unable to detect the n/w adapters with the message
          "Error in pcap_findalldevs: PacketGetAdapterNames: The operation completed successfully. (0)"

          Can anyone please suggest where I'm going wrong.

          Thanks,
          Subbu.



----------------------------------------------------------------------


          _______________________________________________
          Winpcap-users mailing list
          Winpcap-users at winpcap.org
          https://www.winpcap.org/mailman/listinfo/winpcap-users


        _______________________________________________
        Winpcap-users mailing list
        Winpcap-users at winpcap.org
        https://www.winpcap.org/mailman/listinfo/winpcap-users






--------------------------------------------------------------------------


      _______________________________________________
      Winpcap-users mailing list
      Winpcap-users at winpcap.org
      https://www.winpcap.org/mailman/listinfo/winpcap-users


    _______________________________________________
    Winpcap-users mailing list
    Winpcap-users at winpcap.org
    https://www.winpcap.org/mailman/listinfo/winpcap-users






------------------------------------------------------------------------------


  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20081003/850e1aa8/attachment-0001.htm


More information about the Winpcap-users mailing list