All,
How to access these functions ? These are declared in packet32.h but
does not get linked with packet.lib .
void PacketPopulateAdaptersInfoList();
PWCHAR SChar2WChar(PCHAR string);
PCHAR WChar2SChar(PWCHAR string);
BOOL PacketGetFileVersion(LPTSTR FileName,
PCHAR VersionBuff,
UINT VersionBuffLen);
PADAPTER_INFO PacketFindAdInfo(PCHAR AdapterName);
BOOLEAN PacketUpdateAdInfo(PCHAR AdapterName);
Thanks,
Devesh.
-----Original Message-----
From: Devesh Pujari [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 7:20 PM
To: [EMAIL PROTECTED]
Subject: [WinPcap-users] How do I get the MAC address of the local
adapter opened
Hi All,
There is a structure in packet library struct _ADAPTER_INFO
. This structure has Mac Address.
and there is a method in packet32.h file
PADAPTER_INFO PacketFindAdInfo(PCHAR AdapterName);
But I could not link this method to my program. I included both library
wpcap.lib and packet.lib.
Do I have to set any macro to get the this function linked ?
Is there any other method to get the PADAPTER_INFO structure ?
I need local interface Mac Address to set in the ethernet header and
send the raw packets.
How do I get Mac Address ?
Thanks,
Devesh
================================================================= This is the WinPcap
users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
=================================================================