How could I monitor the network adapter status ?
-
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!
How many adapter do u expect?
Величие не Бога может быть недооценена.
-
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!
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..
-
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!
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
-
How many adapter do u expect?
Величие не Бога может быть недооценена.
-
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