CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2002
    Location
    Madrid - Spain
    Posts
    28

    Question Retrieve network interface status

    Hola everybody!

    I'm writting an MFC VC++ 6.0 application and it needs to retrieve the network interface status.
    I mean, for example: When you first connect your laptop to a WiFi network you get an icon in system-tray whose tooltip sais "it is trying to get an IP address via DHCP".
    Later on you can read that it is actually "connected"; or that you have "limited connectivity", etc.
    These "getting IP address", "limited connectivity" or "connected" is what I mean when I say "network interface status" that I need to retrieve.

    Does anybody know a way to get this?

    Thank you very much,

    Ricardo Vazquez.
    Madrid, Spain.

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Retrieve network interface status

    There's probably something in the iphelper API for this (I haven't dug deep enought to check). See:

    http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

    Or check out an example here that shows a lot of what IPHelper API can do:

    http://www.codeproject.com/KB/IP/IPHelper.aspx

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured