Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to determine network cable unplugged?

How to determine network cable unplugged?

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminhelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amarelia
    wrote on last edited by
    #1

    Hi I have developed a dialoged based MFC application and I want to alert user when network cable is unpluged? Is there a way to determine when a network cable is unplugged? (I mean to say in the same way as Windows system tray icon for network changes as soon as we unplugg the network.) I want to run this programm on Windows 2000 and WindowsXP. I think there must be some events occuring while network cable is unplugged. I want to know how to get such event or something like that. Any link or help........? With tons of thankx... Mahesh -- modified at 9:01 Thursday 12th January, 2006

    T 1 Reply Last reply
    0
    • A Amarelia

      Hi I have developed a dialoged based MFC application and I want to alert user when network cable is unpluged? Is there a way to determine when a network cable is unplugged? (I mean to say in the same way as Windows system tray icon for network changes as soon as we unplugg the network.) I want to run this programm on Windows 2000 and WindowsXP. I think there must be some events occuring while network cable is unplugged. I want to know how to get such event or something like that. Any link or help........? With tons of thankx... Mahesh -- modified at 9:01 Thursday 12th January, 2006

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Amarelia wrote:

      I want to run this programm on Windows 2000 and WindowsXP.

      look at ISensNetwork

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV

      A 1 Reply Last reply
      0
      • T ThatsAlok

        Amarelia wrote:

        I want to run this programm on Windows 2000 and WindowsXP.

        look at ISensNetwork

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        A Offline
        A Offline
        Amarelia
        wrote on last edited by
        #3

        Thank a lot Alok But what I think is, for this I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that. I want something like event which tell me whenever network cable is unplugged. I think there must be some events occuring while this happens and thats the reason why windows knows it and shows the icon accordingly in system tray. Thanks again Mahesh

        T 1 Reply Last reply
        0
        • A Amarelia

          Thank a lot Alok But what I think is, for this I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that. I want something like event which tell me whenever network cable is unplugged. I think there must be some events occuring while this happens and thats the reason why windows knows it and shows the icon accordingly in system tray. Thanks again Mahesh

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Amarelia wrote:

          I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that.

          Who Said that you have to check at regular interval!, iSensNetwork is a disinterface, i.e.just query the interface, make a handller for event function and wait for event to happen.. there nothing like querying at regular interval

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups