in fact,i use int pcap_findalldevs_ex() function to retrieve a list of network adapters and the info about them...one of the parameters of pcap_findalldevs_ex() is a pcap_if_t* ...pcap_if_t has got some fields and two of them are char* (name and description)..if you want to convert these char* to a CString,do the following:

CString network_adapter_name(network_adapter_list->name);
CString network_adapter_description(network_adapter_list->description);
//network_adapter_list is pcap_if_t* !

to list the other network adapters,just use the next field of pcap_if_t and do the same as above...

use name field to open a capture session...

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail




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

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

Reply via email to