How to capture "network cable unplugged" event
-
Is it possible to capture the "network cable unplugged" event that appears in a balloon tip on the notification area in Windows NT 5+? I tried by making a thread to monitor the appearance of the balloon, but I cant get it to work. Is there a better way of doing this?? Bikram Singh
-
Is it possible to capture the "network cable unplugged" event that appears in a balloon tip on the notification area in Windows NT 5+? I tried by making a thread to monitor the appearance of the balloon, but I cant get it to work. Is there a better way of doing this?? Bikram Singh
Rather than bother with a tooltip that may or not may not be available, go directly to the source. On a WAN (e.g., VPN), you can use SENS, specifically the
ISensNetwork
interface. If it is a LAN, you'd need to useWSAIoctl(SIO_ADDRESS_LIST_CHANGE)
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Rather than bother with a tooltip that may or not may not be available, go directly to the source. On a WAN (e.g., VPN), you can use SENS, specifically the
ISensNetwork
interface. If it is a LAN, you'd need to useWSAIoctl(SIO_ADDRESS_LIST_CHANGE)
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Thanks ! I managed to get it working, by using IP Helper functions. I dont understand COM sinks very well, so I'm avoiding ISensNetwork for now... :) Bikram Singh