C# Internetverbindung testen
[DllImport("WININET", CharSet = CharSet.Auto)]
static extern bool InternetGetConnectedState(int lpdwFlags, int dwReserved);
public bool CheckInternetConnection() {
return InternetGetConnectedState(0, 0);
}
[DllImport("WININET", CharSet = CharSet.Auto)]
static extern bool InternetGetConnectedState(int lpdwFlags, int dwReserved);
public bool CheckInternetConnection() {
return InternetGetConnectedState(0, 0);
}