Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
4.00/5 (1 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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900