<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>pcap_lookupdev</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" 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=goran.strok@uni-mb.si href="mailto:goran.strok@uni-mb.si">Goran
Štrok</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> Wednesday, May 09, 2007 10:51
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users]
pcap_lookupdev</DIV>
<DIV><BR></DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2>I have one problem. In my computer (win 2000 NT) function
pcap_lookupdev() works fine. It returns device name like this: \ . On the
other computer (win ?) it does not work good. Function return error. In the
other computer is istaled winpcap 3.1 and ethereal but in mine winpcap 4 and
wireshark. Is possible of difference on working function pcap_lookupdev in
winpcap version 3.1 and 4?</FONT></P></BLOCKQUOTE>
<P><FONT size=2>There are no differences in the API behavior, *but* WinPcap 3.1
was affected by several bugs related to improper device listing.</FONT></P>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<P><FONT size=2> And my second question is, why this function returns \?
</FONT></P></BLOCKQUOTE>
<P><FONT size=2>Because pcap_lookupdev returns the adapter names in UNICODE, not
in ASCII (on NT platforms). In any case, pcap_lookupdev() is obsolete,
please use pcap_findalldevs() to retrieve a list of available
adapters.</FONT></P>
<P><FONT face="Courier New" size=2>Have a nice day<BR></FONT><FONT
face="Courier New" size=2>GV</FONT></P>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<P><FONT size=2></FONT> </P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2>Why it does not return the name of internet
device???<BR>Thanks for help.</FONT> </P>
<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>