Remember that the device names in this buffer are not ascii, but unicode
strings. In this standard Every character is normally made up of two bytes,
the ascii code of the character and a \0. You must remove the zeros if you
don't use unicode-specific functions.

Loris

----- Original Message -----
From: "Fakhar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 11:17 AM
Subject: [WinPcap-users] how to get NICs information


Dear WinPacp team,

First its really a great work from you all.

I have a win2k machine having two NICs. Both are Realtek 8139C. I want to
access their information through pcap_lookupdev. My code is as follows.


    char* device;
    char errBuff[PCAP_ERRBUF_SIZE];

    device = pcap_lookupdev( errBuff );

Now every time I run this code I get only "\" one chracter.
Please help me to sort it out.

Other question is that where is pcap_lookupdev function is defined.  I can
not find this function in WPCAP project.

Thanks


Fakhar


Reply via email to