[DLLIMPORT ("Wininet.dll")] Private Extern Static Bool InternetGetConnectedState (Out Int ConnectionDescription, Int ReservedValue);
/// /// Retrieves the connection state of the local system.//////////////////////// Returns True if The IS An Internet Connection, OR FALSE OtherWise. Returns> Public Bool ISconnected () {int connectionDescription = 0; returnnetGetConnectedState (Out ConnectionDescription, 0);}
References: Microsoft Offline Application BlockwinineTectionStrategy.cs