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 could I monitor the network adapter status ?

How could I monitor the network adapter status ?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminjsonquestion
6 Posts 4 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.
  • E Offline
    E Offline
    EverettJF
    wrote on last edited by
    #1

    I mean , when the user disable or enable the adapter, my application could get the notification , I am an application level developor ,I know nothing about the Windows Driver Develop. Is there any API or methods could work? Thank you!

    A C D 3 Replies Last reply
    0
    • E EverettJF

      I mean , when the user disable or enable the adapter, my application could get the notification , I am an application level developor ,I know nothing about the Windows Driver Develop. Is there any API or methods could work? Thank you!

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      How many adapter do u expect?

      Величие не Бога может быть недооценена.

      E 1 Reply Last reply
      0
      • E EverettJF

        I mean , when the user disable or enable the adapter, my application could get the notification , I am an application level developor ,I know nothing about the Windows Driver Develop. Is there any API or methods could work? Thank you!

        C Offline
        C Offline
        Cool_Dev
        wrote on last edited by
        #3

        use WMI Win32_NetworkAdapter Class. See msdn documentation here http://msdn.microsoft.com/en-us/library/aa394216(VS.85).aspx[^] write a service to monitor the status or write a seperate thread in you application to monitor the network adapter status..

        1 Reply Last reply
        0
        • E EverettJF

          I mean , when the user disable or enable the adapter, my application could get the notification , I am an application level developor ,I know nothing about the Windows Driver Develop. Is there any API or methods could work? Thank you!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          EverettJF wrote:

          when the user disable or enable the adapter, my application could get the notification...Is there any API or methods could work?

          Have you looked at the ISensNetwork interface?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          E 1 Reply Last reply
          0
          • A Adam Roderick J

            How many adapter do u expect?

            Величие не Бога может быть недооценена.

            E Offline
            E Offline
            EverettJF
            wrote on last edited by
            #5

            I expect to monitor any of the network adapter. may be 2 ,may be only 1.

            1 Reply Last reply
            0
            • D David Crow

              EverettJF wrote:

              when the user disable or enable the adapter, my application could get the notification...Is there any API or methods could work?

              Have you looked at the ISensNetwork interface?

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Man who follows car will be exhausted." - Confucius

              E Offline
              E Offline
              EverettJF
              wrote on last edited by
              #6

              thanks, may be I should get the COM

              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