Thanks. The Zniffer component in Delphi hides this so I couldn't see these
values were returned. But making the call directly to
PacketGetAdapterNames() allowed me to get the right information like you
mentioned.

Thanks.

----- Original Message ----- 
From: "Lee Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 24, 2002 8:55 AM
Subject: Re: [WinPcap-users] Obtain friendly interface names and IP
addresses


> When you call PacketGetAdapterNames, you get a 1 ascii/unicode string
buffer
> back containing 2 sections.  The sections are delimited by 2 null
> characters.  The 1st section contains the list of cryptic IDs, each
> delimited by 1 null character.  The 2nd section contains the corresponding
> friendly name, where each name is delimited by 1 null character.  So for
> example, a typical ascii string buffer in memory will look like this...
>
> [cryptic ID1]\0[cryptic ID2]\0\0[friendly name1]\0[friendly name2]\0
>
> [friendly name1] is the friendly name for [cryptic ID1].
> [friendly name2] is the friendly name for [cryptic ID2].
>
> ----- Original Message -----
> From: "Charles Antoon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 23, 2002 1:39 AM
> Subject: [WinPcap-users] Obtain friendly interface names and IP addresses
>
>
> > Hi,
> >
> > I need to display a "friendly" name for an interface (such as "SURECOM
> > EP-320X-R 100/10/M PCI Adapter") instead of the cryptic ID
> > "\Device\NPF_{5648216C-CDB9-45B2-8CEE-EDF723F20E05}". Is there a method
I
> > can call to retrieve this friendly name?
> >
> > Secondly, I need to know the IP address and subnet mask of the selected
> > interface. How can this easily be determined? I am currently using the
> > Windows API function GetAdaptersInfo() to get this information but the
> > adapterindex's arent always in sync.
> >
> > Thanks,
> >
> > Charlie
> >
> >
> >
> > ==================================================================
> >  This is the WinPcap users list. It is archived at
> >  http://www.mail-archive.com/[email protected]/
> >
> >  To unsubscribe use
> >  mailto: [EMAIL PROTECTED]?body=unsubscribe
> > ==================================================================
> >
>
>
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[email protected]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]?body=unsubscribe
> ==================================================================
>



==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[email protected]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]?body=unsubscribe
==================================================================

Reply via email to