<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I suggest you to have a look at this</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><A
href="http://www.winpcap.org/docs/docs_41b5/html/group__wpcapsamps.html">http://www.winpcap.org/docs/docs_41b5/html/group__wpcapsamps.html</A></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> </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=redslasher99@yahoo.com href="mailto:redslasher99@yahoo.com">Benjamin
Kiefer</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> Thursday, July 23, 2009 4:02
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] Out of my
depth...</DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">I'm
using visual studio to try to run this code (the code from the link you said)
and first it says, <BR>"Error 1 fatal
error C1083: Cannot open include file: 'pcap.h': No such file or
directory"<BR>even after adding existing item and browsing to it. So, I add
new item, copy the contents of pcap.h into it, and save it as pcap.h. next
error,<BR>"Error 1 fatal error C1083:
Cannot open include file: 'pcap-stdinc.h': No such file or directory"<BR>I try
repeating the last step, but it never works.<BR><BR>At one point I had tried
to run their "example" solutions, with about 13 errors about
<BR>"Error 1 error C3163: '_vsnprintf':
attributes inconsistent with previous declaration"<BR><BR>Also, that is NOT a
tutorial. They don't tell you what you need to actually execute the code, i.e.
which .h files are needed to be included (other then the #include), whether it
only needs the .dll or what. It's very frustrating trying to run code with all
the provided information, only to discover that there's still vital
information not given.<FONT size=3><BR><BR>I'm not sure if anyone here is
familiar with several programs written for use with the game Warcraft III,
namely banlist and listchecker. These programs scan through the traffic to
your computer and log several bits of information about players you interact
with, ultimately allowing you to compile a list of players you do not wish to
have interaction with again. Also, they have built in ping functionality, as
well as several other helpful tools. The problem is that they each have
strengths, but definate weaknesses, and who wants to run 4 programs in tandem
with a game to do everything if they can just combine them. I've determined
that their functionality stems from winpcap, and wanted to write my own
version of these programs that incorporates their strengths into 1 package. I
don't like c++ or c, and wanted to do it in c#. I had no idea (as it said
nothing about it) that this wasn't really set up to be used with .net straight
away (as there are no .sln's that just compile and work properly) and wanted
to know if I needed to compile something into a .dll or if there was just an
updated c# version out there.<BR></FONT>
<DIV> </DIV>Benjamin C. Kiefer
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV
style="FONT-SIZE: 13px; FONT-FAMILY: arial,helvetica,sans-serif"><BR>----------------------------------------------------------------------<BR><BR>Message:
1<BR>Date: Wed, 22 Jul 2009 16:43:56 -0700 (PDT)<BR>From: Benjamin Kiefer
<<A href="mailto:redslasher99@yahoo.com"
ymailto="mailto:redslasher99@yahoo.com">redslasher99@yahoo.com</A>><BR>Subject:
[Winpcap-users] Out of my depth...<BR>To: <A
href="mailto:winpcap-users@winpcap.org"
ymailto="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A><BR>Message-ID:
<<A href="mailto:816177.50808.qm@web51602.mail.re2.yahoo.com"
ymailto="mailto:816177.50808.qm@web51602.mail.re2.yahoo.com">816177.50808.qm@web51602.mail.re2.yahoo.com</A>><BR>Content-Type:
text/plain; charset="us-ascii"<BR><BR>Okay, I'm a college student who barely
uses c++, and wanted to put all the functionality of winpcap into a .dll that
I can use in, say, c#. Would anyone be able to tell me what exactly I'd need
for it to work, because I'm REALLY confused by the documentation. The sample
code doesn't compile properly, and it'd be really nice to just have a .sln to
run that actually works. This seems very complex as is, and the documentation
doesn't really help. Apparently they don't know what "tutorials" look like,
because as far as I know, giving someone a complete .cpp and barely going into
what is done on it doesn't help anyone learn.<BR><BR>Any help would be greatly
appreciated (i.e. a REAL tutorial describing which functions are used to do
what and why, and how they do it) or I'd just be happy with a .dll that I can
call stuff from if that's all you can do. Thanks again.<BR><BR>Benjamin C.
Kiefer<BR><BR><BR><BR> <BR>-------------- next part
--------------<BR>An HTML attachment was scrubbed...<BR><SPAN>URL: <A
href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/04b3892d/attachment-0001.htm"
target=_blank>http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/04b3892d/attachment-0001.htm</A>
</SPAN><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Wed,
22 Jul 2009 17:37:26 -0700<BR>From: "Gianluca Varenni" <<A
href="mailto:gianluca.varenni@cacetech.com"
ymailto="mailto:gianluca.varenni@cacetech.com">gianluca.varenni@cacetech.com</A>><BR>Subject:
Re: [Winpcap-users] Out of my depth...<BR>To: <<A
href="mailto:winpcap-users@winpcap.org"
ymailto="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A>><BR>Message-ID:
<11C64035AA734BA88269EC96445774DF@NELSON3><BR>Content-Type: text/plain;
charset="iso-8859-1"<BR><BR><BR> ----- Original Message ----- <BR>
From: Benjamin Kiefer <BR> To: <A
href="mailto:winpcap-users@winpcap.org"
ymailto="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A>
<BR> Sent: Wednesday, July 22, 2009 4:43 PM<BR> Subject:
[Winpcap-users] Out of my depth...<BR><BR><BR> Okay, I'm a college
student who barely uses c++, and wanted to put all the functionality of
winpcap into a .dll that I can use in, say, c#. Would anyone be able to tell
me what exactly I'd need for it to work, because I'm REALLY confused by the
documentation. The sample code doesn't compile properly, and it'd be really
nice to just have a .sln to run <BR><BR>Which samples in the developer's pack
do not compile? Can you be a bit more specific?<BR><BR><BR> that
actually works. This seems very complex as is, and the documentation doesn't
really help. Apparently they don't know what "tutorials" look like, because as
far as I know, giving someone a complete .cpp and barely going into what is
done on it doesn't help anyone learn.<BR><BR>Have you looked at the tutorial
here<BR><BR><SPAN><A
href="http://www.winpcap.org/docs/docs_41b5/html/group__wpcap__tut.html"
target=_blank>http://www.winpcap.org/docs/docs_41b5/html/group__wpcap__tut.html</A></SPAN><BR>?<BR><BR>Also,
there are a bunch of .NET wrappers for WinPcap, at least one is available on
codeproject (just search for "net wrapper on google").<BR><BR>Have a nice
day<BR>GV<BR><BR> Any help would be greatly appreciated (i.e. a REAL
tutorial describing which functions are used to do what and why, and how they
do it) or I'd just be happy with a .dll that I can call stuff from if that's
all you can do. Thanks again.<BR><BR><BR> Benjamin C.
Kiefer<BR><BR><BR><BR><BR><BR><BR>------------------------------------------------------------------------------<BR><BR><BR>
_______________________________________________<BR> Winpcap-users
mailing list<BR> <A href="mailto:Winpcap-users@winpcap.org"
ymailto="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>--------------
next part --------------<BR>An HTML attachment was scrubbed...<BR><SPAN>URL:
<A
href="http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/7edc3dda/attachment-0001.htm"
target=_blank>http://www.winpcap.org/pipermail/winpcap-users/attachments/20090722/7edc3dda/attachment-0001.htm</A>
</SPAN><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Wed,
22 Jul 2009 18:05:42 -0700<BR>From: Guy Harris <<A
href="mailto:guy@alum.mit.edu"
ymailto="mailto:guy@alum.mit.edu">guy@alum.mit.edu</A>><BR>Subject: Re:
[Winpcap-users] Out of my depth...<BR>To: <A
href="mailto:winpcap-users@winpcap.org"
ymailto="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A><BR>Message-ID:
<<A href="mailto:AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu"
ymailto="mailto:AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu">AD2079F3-C2FF-4AAA-AA0A-B89E7E1F85C3@alum.mit.edu</A>><BR>Content-Type:
text/plain; charset=WINDOWS-1252; format=flowed;<BR>
delsp=yes<BR><BR><BR>On Jul 22, 2009, at 4:43 PM, Benjamin Kiefer
wrote:<BR><BR>> Okay, I'm a college student who barely uses c++, and wanted
to put <BR>> all the functionality of winpcap into a .dll that I can
use in, say, <BR>> c#.<BR><BR>Is the goal to write such an
encapsulation, or is the goal to use <BR>WinPcap from C#?<BR><BR>If the
goal is the latter - i.e., if you're not, for example, trying <BR>to
learn how to wrap C/C++ libraries for use in .NET - then the
<BR>Wikipedia page for pcap (libpcap/WinPcap):<BR><BR><SPAN>
<A href="http://en.wikipedia.org/wiki/Pcap"
target=_blank>http://en.wikipedia.org/wiki/Pcap</A></SPAN><BR><BR>says:<BR><BR>
Wrappers for use of libpcap/WinPcap in languages other than C and
C++<BR><BR> ...<BR><BR>
? WinPcapNET and SharpPcap, .NET wrappers for WinPcap<BR><BR>and
SharpPcap is at<BR><BR><SPAN> <A
href="http://sharppcap.wiki.sourceforge.net/"
target=_blank>http://sharppcap.wiki.sourceforge.net/</A></SPAN><BR><BR>(WinPcapNet
is at<BR><BR><SPAN> <A
href="http://blogs.creadev.net/benj/2007/03/26/winpcapnet-first-release/"
target=_blank>http://blogs.creadev.net/benj/2007/03/26/winpcapnet-first-release/</A></SPAN><BR><BR>but
I don't know whether anything's been done on it since then;
<BR>SharpPcap's last release was in May of this year, so it appears to
be <BR>active.)<BR></DIV></DIV></DIV><BR>
<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>