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

  • Employees must exchange sensitive emails with customers and partners. These emails might contain protected health information, protected financial information, or corporate information that should not be made public. Globalscape® Mail Express® allows you to encrypt the emails that it manages so that no one but the sender and recipient--not even the administrator--can view the contents of the email. "Secure the Transfer of Sensitive Emails" is the property of GlobalSCAPE

  • Discover how to quickly remediate aggressive security threats. Read this report from Forrester Research and get the facts about new automated compliance processes and how they will reduce your organization's vulnerability and risk. Learn to: Adopt a set of cyber "Rules of Engagement" Define the appropriate response through the "Response Index" Create actionable response metrics Ensure multiple levels of audit and reinforcement Plus, find out how to better align security and operations teams and put the …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date