How to determine network cable unplugged?
-
Hi I have developed a dialoged based MFC application and I want to alert user when network cable is unpluged? Is there a way to determine when a network cable is unplugged? (I mean to say in the same way as Windows system tray icon for network changes as soon as we unplugg the network.) I want to run this programm on Windows 2000 and WindowsXP. I think there must be some events occuring while network cable is unplugged. I want to know how to get such event or something like that. Any link or help........? With tons of thankx... Mahesh -- modified at 9:01 Thursday 12th January, 2006
-
Hi I have developed a dialoged based MFC application and I want to alert user when network cable is unpluged? Is there a way to determine when a network cable is unplugged? (I mean to say in the same way as Windows system tray icon for network changes as soon as we unplugg the network.) I want to run this programm on Windows 2000 and WindowsXP. I think there must be some events occuring while network cable is unplugged. I want to know how to get such event or something like that. Any link or help........? With tons of thankx... Mahesh -- modified at 9:01 Thursday 12th January, 2006
Amarelia wrote:
I want to run this programm on Windows 2000 and WindowsXP.
look at ISensNetwork
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Amarelia wrote:
I want to run this programm on Windows 2000 and WindowsXP.
look at ISensNetwork
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
Thank a lot Alok But what I think is, for this I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that. I want something like event which tell me whenever network cable is unplugged. I think there must be some events occuring while this happens and thats the reason why windows knows it and shows the icon accordingly in system tray. Thanks again Mahesh
-
Thank a lot Alok But what I think is, for this I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that. I want something like event which tell me whenever network cable is unplugged. I think there must be some events occuring while this happens and thats the reason why windows knows it and shows the icon accordingly in system tray. Thanks again Mahesh
Amarelia wrote:
I have to use this function in certain time interval to check if my network cable is plugged or not? And I don't want that.
Who Said that you have to check at regular interval!, iSensNetwork is a disinterface, i.e.just query the interface, make a handller for event function and wait for event to happen.. there nothing like querying at regular interval
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV