Network Active Event?

  • Thread starter Thread starter Edh
  • Start date Start date
E

Edh

Is there a system event or notification that I can catch in my application
to know when any network connection has become active (WiFi, Dial Up, LAN
etc...)?

Example: I have a service that sits idle until it gets a "Network Active
Event". This service runs on a laptop that may roam in and out of wifi
coverage. When the user walks into a hotspot area, I want my application to
realize this, and now check for new files.

Thanks,
-Ed
 
Seems that SENS (System Event Notification Service) is capable of providing
such notifications. See the SENS topics in the "Synchronization Manager"
chapter of the Platform SDK.
It uses COM Event System so it should be relatively easy to subscribe to
these events from a .NET app.
 
The ISensNetwork::ConnectionMade method should be of particular interest to
you.
 
Back
Top