View Adapter Information using GetAdaptersInfo
Posted
by Nguyen Thanh Phong
on January 10th, 2002
Environment: VC6, Windows NT SP 4 or later, Win 98 SE or later
Some applications being installed on a computer need a way to retrieve the unique information that globally identify the computer. I created a function to do this. My method is based on the MAC address of the network adapter as the computer identifier. The GetAdaptersInfo API function is used to get information from the network adapter. You'll need Microsoft Platform SDK to compile. Read MSDN to know how to install Platform SDK . The executable is included in the zip file.

Comments
Delete instead of free ???
Posted by FlyboyBart on 08/23/2005 03:23amGood article. Help me way ahead. Although, a little fault ? Change delete (pinfo) into free (pinfo) in function CViewAdapterInfoDlg::GetInfo(). This works much better.
ReplyHow can i get url from client?
Posted by nwadmin on 01/20/2005 10:25pmI have a Lan.I want to build a small program installing on the server(proxy server).It can catch all url (On web browser)from client when they surf web.What can i do ?(Using Java).
ReplyCannot find Iphlapi.h ...
Posted by Legacy on 02/23/2004 12:00amOriginally posted by: Bdk
Please can you mail me Iphlapi.h. If you have please mail me...
Thank You
-
Reply
Replyaa
Posted by tarek1305 on 05/18/2005 01:07pmHi, install microsoft SDK and recomments code, it will work !
Posted by Legacy on 12/23/2003 12:00amOriginally posted by: mathabu
in Iphlpapi.h
// DWORD
// WINAPI
// GetIcmpStatisticsEx(
// OUT PMIB_ICMP_EX pStats,
// IN DWORD dwFamily
// );
Reply
How can i get the virtual user-interface under win XP with MFC?
Posted by Legacy on 12/18/2003 12:00amOriginally posted by: mathabu
like vmnet1 mnet8 oder other from mobile ip applikation
Replythanks
Needed Iphlpapi.h and Iphlpapi.lib files
Posted by Legacy on 11/21/2003 12:00amOriginally posted by: Abhijit
Sir,
ReplyI have downloaded the file but after compilation it asks for Iphlpapi.h and Iphlpapi.lib files.
If u have got these files then can u please send it to me to my mail account.
Abhijit
Iphlpapi.h???
Posted by Legacy on 06/12/2003 12:00amOriginally posted by: vishwanath
error????????
fatal error C1083: Cannot open include file: 'Iphlpapi.h': No such file or directory
ReplyHow can see if network adapter is disabled ?
Posted by Legacy on 05/22/2003 12:00amOriginally posted by: Korven
I want to detect if network adapter is enabled or disabled. How can i do this ??
ReplyThx.
Needed iphlpapi.h,batclass.h
Posted by Legacy on 04/16/2003 12:00amOriginally posted by: dileeprb
need header files
Replyip address altered when cable disconnect,why?
Posted by Legacy on 04/14/2003 12:00amOriginally posted by: Hai
ip address altered to 0.0.0.0 when i pull rj45 out from the adapter ?but my Ip is fixed .
ReplyLoading, Please Wait ...