The following code fails on about 50% of the Vista systems (32 or 64) I have tested in with. IsNetworAlive often returns true after detaching the network cable. Oddly I noticed on one system it returned false about 5 minutes after removing the cable. Can it be that slow
Any thoughts
Code Follows........................................
DWORD dwConnectionFlags(0);
BOOL bIsNetworkAlive = IsNetworkAlive(&dwConnectionFlags);
if(bIsNetworkAlive )
{
callReadinessElement.callReadinessObjectStatus = CRS_Ok;
callReadinessElement.callReadinessStatusDetails = CRD_Okd;
}
else
{
callReadinessElement.callReadinessObjectStatus = CRS_Stop_Error;
callReadinessElement.callReadinessStatusDetails = CRD_NoNetwork;
}

Is IsNetworkAlive reliable?
hellomahesh
Hello
Re: Is IsNetworkAlive reliable
Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1
For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups.
OTP
Thanks
Damien