View Adapter Information using GetAdaptersInfo

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.

Downloads

Download source - 16 Kb


Comments

  • Delete instead of free ???

    Posted by FlyboyBart on 08/23/2005 03:23am

    Good article. Help me way ahead. Although, a little fault ? Change delete (pinfo) into free (pinfo) in function CViewAdapterInfoDlg::GetInfo(). This works much better.

    Reply
  • How can i get url from client?

    Posted by nwadmin on 01/20/2005 10:25pm

    I 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).

    Reply
  • Cannot find Iphlapi.h ...

    Posted by Legacy on 02/23/2004 12:00am

    Originally posted by: Bdk

    Please can you mail me Iphlapi.h. If you have please mail me...

    Thank You

    • aa

      Posted by tarek1305 on 05/18/2005 01:07pm

      aaaa

      Reply
    Reply
  • Hi, install microsoft SDK and recomments code, it will work !

    Posted by Legacy on 12/23/2003 12:00am

    Originally 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:00am

    Originally posted by: mathabu

    like vmnet1 mnet8 oder other from mobile ip applikation
    thanks

    Reply
  • Needed Iphlpapi.h and Iphlpapi.lib files

    Posted by Legacy on 11/21/2003 12:00am

    Originally posted by: Abhijit

    Sir,
    I 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

    Reply
  • Iphlpapi.h???

    Posted by Legacy on 06/12/2003 12:00am

    Originally posted by: vishwanath

    error????????

    fatal error C1083: Cannot open include file: 'Iphlpapi.h': No such file or directory

    Reply
  • How can see if network adapter is disabled ?

    Posted by Legacy on 05/22/2003 12:00am

    Originally posted by: Korven

    I want to detect if network adapter is enabled or disabled. How can i do this ??
    Thx.

    Reply
  • Needed iphlpapi.h,batclass.h

    Posted by Legacy on 04/16/2003 12:00am

    Originally posted by: dileeprb

    need header files

    Reply
  • ip address altered when cable disconnect,why?

    Posted by Legacy on 04/14/2003 12:00am

    Originally posted by: Hai

    ip address altered to 0.0.0.0 when i pull rj45 out from the adapter ?but my Ip is fixed .

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

  • On-demand Event Event Date: October 23, 2014 Despite the current "virtualize everything" mentality, there are advantages to utilizing physical hardware for certain tasks. This is especially true for backups. In many cases, it is clearly in an organization's best interest to make use of physical, purpose-built backup appliances rather than relying on virtual backup software (VBA - Virtual Backup Appliances). Join us for this webcast to learn why physical appliances are preferable to virtual backup appliances, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds