Click here to Skip to main content
12,625,607 members (34,044 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: (untagged)
Hi,

As the subject line says it all.

I want a notification to be generated , when lan cable is unplugged, or wifi signal is disabled.

I am able to enumerate all lan adapters and wifi adapters. But i don't want to keep my thread running continuously.

So i need a network notification which can signal my win32 service to do further processing.


Any anybody help me out.


With Rgds
Girish
Posted 28-Nov-12 4:34am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See this article:

Network Awareness in Windows Vista and Windows 7
http://msdn.microsoft.com/en-us/library/ee264321(v=vs.85).aspx[^]

It tells you how to register for network events.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161205.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100