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 get notified when netowrk connection up or down?

How to get notified when netowrk connection up or down?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmintutorialquestion
5 Posts 3 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
    Anonymous
    wrote on last edited by
    #1

    Hi all, I need to get notification when the network link up or down. is there any way to do it? did any one know how the windows system know this and display a message at the coner of the screen when link up or down? Thanks a lot.

    S A 2 Replies Last reply
    0
    • A Anonymous

      Hi all, I need to get notification when the network link up or down. is there any way to do it? did any one know how the windows system know this and display a message at the coner of the screen when link up or down? Thanks a lot.

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      May be that's a dumb answer from me, but you can show a blinking systray icon for the network link just by checking a box in the Network settings.


      MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.

      1 Reply Last reply
      0
      • A Anonymous

        Hi all, I need to get notification when the network link up or down. is there any way to do it? did any one know how the windows system know this and display a message at the coner of the screen when link up or down? Thanks a lot.

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

        Hi ano, take a look at the System Event Notification Service (SENS), and especially the ISensNetwork interface. I believe there is an article about this in a recent Dr. Dobbs, or search the Microsoft site. Bye, Alwin

        A 1 Reply Last reply
        0
        • A Alwin75

          Hi ano, take a look at the System Event Notification Service (SENS), and especially the ISensNetwork interface. I believe there is an article about this in a recent Dr. Dobbs, or search the Microsoft site. Bye, Alwin

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Hi Alwin, I've read the SENS article. it works fine with dialup line. but augly with LAN. it seems the desktop network connection link up/down message is not from SENS Did you know other info? Thanks.

          A 1 Reply Last reply
          0
          • A Anonymous

            Hi Alwin, I've read the SENS article. it works fine with dialup line. but augly with LAN. it seems the desktop network connection link up/down message is not from SENS Did you know other info? Thanks.

            A Offline
            A Offline
            Alwin75
            wrote on last edited by
            #5

            Hi, It turned out that I did not read the article in Dr. Dobbs but in MSDN, which is available electronically here. The article indicates that SENS does not work well for what you want to do but describes an alternative using WMI (Windows Management Instrumentation) that might help you. Regards, Alwin

            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