How to detect the connection status to the LAN
I use this:
Bool IsNetworkAlive(
LPDWORD lpdwFlags // Specifies the type of network connection
);
but it detect the disconnection after about 5 min then real disconnection.
How can I solve this problem?
Oh, another best way?
Thanks.