CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 1999
    Location
    North Germany
    Posts
    306

    detecting removed network cable?

    Hello

    I hope someone can help me. So far I always used KeepAlive to detect if my socket connection is ok or lost. Now I want to write a small program in C++ for windows which only displays a list of my current network cards and is the cable is plugged in or not. Similar to the list in the settings from Windows itself.

    Is there any way how I can get notified about the network state of my cards without having a socket connection to somewhere?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: detecting removed network cable?

    Victor Nijegorodov

  3. #3
    Join Date
    Jun 1999
    Location
    North Germany
    Posts
    306

    Re: detecting removed network cable?

    Thank you

  4. #4
    Join Date
    Aug 2017
    Posts
    36

    Re: detecting removed network cable?

    Uninstall the network adapter in Device Manager and restart Windows.

    Alternatively or additionally, find a later driver for the network adapter (probably part of a multi function chipset) at Gigabyte site.

    Also see if there's a newer BIOS for your motherboard.

  5. #5
    Join Date
    Apr 2017
    Posts
    9

    Re: detecting removed network cable?

    Quote Originally Posted by Priya456 View Post
    Uninstall the network adapter in Device Manager and restart Windows.

    Alternatively or additionally, find a later driver for the network adapter (probably part of a multi function chipset) at Gigabyte site.

    Also see if there's a newer BIOS for your motherboard.
    Good to know about this..thanks for sharing the post..

  6. #6
    Join Date
    Jan 2018
    Posts
    15

    Re: detecting removed network cable?

    oh thanks for sharing, didn't know how to make this in C++, I only used Network list manager apps.

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: detecting removed network cable?

    See the ISensNetwork COM intetface in msdn. https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

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