So, any solution to this problem? I am in a similar situation where I
need to get a notification from the system when the internet connection
state changes. Obviously applications like MSN Messanger and Skype are
able to detect it (for example when I pull out the network cable).
How do they do it? I hope it is not by using a thread that is
constantly polling a website or some such solution.
Post by s***@gmail.comThanks for your immediate reply Vladimir Scherbina,
But I would like to do it in a callback fashion. so that if there is a
status change I get the notification immediately. So need to check the
connection every time.
since my application will be using the data obtained from the network
divice and when disconnection happens I need to wait for reconnection.
regards
suresh
Post by Vladimir ScherbinaSuresh,
You can check the connected state of the system using
InternetGetConnectedState function. Checking the 'connection' in case of
WinInet means checking the return values of wininet functions.
--
Vladimir
Post by s***@gmail.comDear Experts,
Can anyone of you tell me how to use OnStatusCallback() function to
check my internet connection status?
or
how to use InternetSetStatusCallback function to check my internet
connection status?
regards
Suresh