<div dir="ltr">Thank you very much for the response.<br><br>I am using Packet32.c file(which is part of Packet9x DLL). In that file the execution flow comes to function &quot;PacketGetAdapterNames&quot; where it checks for certain registry entries,<br>
<br>Status=RegOpenKeyEx(HKEY_LOCAL_MACHINE,&quot;SYSTEM\\CurrentControlSet\\Services\\class\\net&quot;,0,KEY_READ,&amp;Key);<br><br>here it fails, I&#39;ve no such entries in my registry either.<br><br>However I found another version of the same file which looks for:<br>
<br>Status = RegOpenKeyEx(HKEY_LOCAL_MACHINE,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEXT(&quot;SYSTEM\\ControlSet001\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}&quot;),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, KEY_READ, &amp;AdapKey);<br>
<br>but as the execution flow comes down to other functions RegEnumKey fails and it too returns FALSE,<br><br>I guess I&#39;m missing something crucial,<br>Thanks,<br>Subbu.<br><br><br><div class="gmail_quote">On Thu, Oct 2, 2008 at 12:19 PM, Gianluca Varenni <span dir="ltr">&lt;<a href="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div bgcolor="#ffffff">
<div><font size="2">Which DLLs did you compile?</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">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.</font></div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">Which OS are you running on?</font></div><div class="Ih2E3d">
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">Have a nice day</font></div>
<div><font size="2">GV</font></div>
<div><font size="2"></font>&nbsp;</div>
</div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="Ih2E3d">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="arunperi@gmail.com" href="mailto:arunperi@gmail.com" target="_blank">Subrahmanyam 
  (Arun)</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a> </div>

  </div><div><div></div><div class="Wj3C7c"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>Sent:</b> Wednesday, October 01, 2008 2:13 
  PM</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [Winpcap-users] Using 
  Winpcap</div>
  <div><br></div>
  <div dir="ltr">Hi,<br><br>I&#39;m sorry for the discrepancy in my earlier 
  mail.<br><br>Firstly, I used the developers pack and could detect my network 
  devices.<br><br>Then I downloaded the source code of winpcap from <a href="http://www.winpcap.org/devel.htm" target="_blank">http://www.winpcap.org/devel.htm</a>, 
  i.e <a href="http://www.winpcap.org/install/bin/WpcapSrc_4_0_2.zip" target="_blank">Download 
  WinPcap 4.0.2 Source Code</a> which is the latest version. I compiled the code 
  and from these DLL&#39;s I&#39;m unable to detect any of the network 
  devices.<br><br>It fails in &quot;PacketGetAdapterNames&quot; which actually looks for a 
  registry entry. But I&#39;m surpised how the binaries are working, is there any 
  difference between the installer and the binaries I built.<br><br>I have 
  WinPCap installed also.<br><br>Thanks,<br>Subbu.<br><br><br>
  <div class="gmail_quote">On Wed, Oct 1, 2008 at 2:54 PM, Gianluca Varenni <span dir="ltr">&lt;<a href="mailto:gianluca.varenni@cacetech.com" target="_blank">gianluca.varenni@cacetech.com</a>&gt;</span> 
  wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff">
    <div><font size="2">The developer&#39;s pack doesn&#39;t contain the sources of 
    WinPcap. It&#39;s a developer&#39;s pack to create WinPcap based applications. 
    </font></div>
    <div><font size="2">In order to use WinPcap, you always need to install it on 
    the target machine with the installer, you cannot just use the developer&#39;s 
    pack and copy the DLLs.</font></div>
    <div><font size="2"></font>&nbsp;</div>
    <div><font size="2">Let me know if this answers your question.</font></div>
    <div><font size="2"></font>&nbsp;</div>
    <div><font size="2">Have a nice day</font></div>
    <div><font size="2">GV<br></font></div>
    <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
      <div>
      <div></div>
      <div>
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- 
      Original Message ----- </div>
      <div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
      <a title="arunperi@gmail.com" href="mailto:arunperi@gmail.com" target="_blank">Subrahmanyam (Arun)</a> </div>
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> 
      <a title="winpcap-users@winpcap.org" href="mailto:winpcap-users@winpcap.org" target="_blank">winpcap-users@winpcap.org</a> </div>
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> 
      Wednesday, October 01, 2008 10:40 AM</div>
      <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> 
      [Winpcap-users] Using Winpcap</div>
      <div><br></div>
      <div dir="ltr">Hi All,<br><br>I&#39;ve downloaded winpcap source code( <a href="http://install/bin/WpdPack_4_0_2.zip" target="_blank">Download WinPcap 
      4.0.2 Developer&#39;s Pack )</a><br><br>In a sample application when I use 
      winpcap dll&#39;s (Packet.dll, WanPacket.dll, wpcap.dll) I am able to detect 
      the network adapters.<br><br>But with the downloaded and the latest source 
      code I am unable to detect the n/w adapters with the message<br>&quot;Error in 
      pcap_findalldevs: PacketGetAdapterNames: The operation completed 
      successfully. (0)&quot;<br><br>Can anyone please suggest where I&#39;m going 
      wrong.<br><br>Thanks,<br>Subbu.<br></div></div></div>
      <p></p>
      <hr>

      <p></p>_______________________________________________<br>Winpcap-users 
      mailing list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</blockquote></div><br>_______________________________________________<br>Winpcap-users 
    mailing list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br></blockquote></div><br></div>
  <p>
  </p><hr>

  <p></p>_______________________________________________<br>Winpcap-users 
  mailing 
  list<br><a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br><a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</div></div></blockquote></div>
<br>_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br></blockquote></div><br></div>