Thanks, Bengi. I know there are several different ways to check network connection availability.
It is just I saw this IsNetworkAlive function on MSDN and want to tyr it out. But strangely it doesn't work the way it is supposed to be. So I was wondering if somebody has used this before. If they got the same problem, maybe it is a bug of Microsoft platform SDK.