<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>It seems a service dependency problem.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Can you send us a barebone service that I can use for testing?
I do know how to create a service, but it requires a bit of time (and I'm really
busy in these days). Having a WinPcap service sample that I can easily compile
will surely speed up the debugging...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mjaffa@gmail.com href="mailto:mjaffa@gmail.com">matt jaffa</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 31, 2006 9:36
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Application
fails first open with winpcap</DIV>
<DIV><BR></DIV>
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>So our application will open and close when we use it the first time
after a reboot. But if we open it twice the 2nd time it succeeds and
everything is fine. If we open ethereal and close it and then open our
application everything is fine too. Is there something we are not doing to
initialize winpcap? </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P>pcap_if_t *alldevs;</P>
<P>pcap_if_t *d;</P>
<P></P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i=0;
<P></P></FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2>
errbuf[PCAP_ERRBUF_SIZE];
<P></P>
<P></P></FONT><FONT color=#0000ff size=2>if</FONT><FONT
size=2>(pcap_findalldevs(&alldevs, errbuf) == -1)
<P>{</P>
<P>fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf);</P>
<P></P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;
<P>}</P>
<P></P>
<P></P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2>(d=alldevs; d;
d=d->next)
<P>{ </P>
<P></P></FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2> *deviceName
= strdup(d->name);
<P>CreateThread(NULL, 0, &StartRoutine, deviceName, 0, NULL);</P>
<P>}</P>
<P>pcap_freealldevs(alldevs);</P></FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>