<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Abfragen, ob eine Internet-Verbindung aktiv ist]]></title><description><![CDATA[<p>Hallo!<br />
Wie kann ich abfragen, ob eine Internet-Verbindung aktiv ist?</p>
<p>Vielen Dank schon mal</p>
<p>Hansi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/45350/abfragen-ob-eine-internet-verbindung-aktiv-ist</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 20:51:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/45350.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Aug 2003 14:44:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Abfragen, ob eine Internet-Verbindung aktiv ist on Sat, 09 Aug 2003 14:44:38 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Wie kann ich abfragen, ob eine Internet-Verbindung aktiv ist?</p>
<p>Vielen Dank schon mal</p>
<p>Hansi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/327888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/327888</guid><dc:creator><![CDATA[Hansi]]></dc:creator><pubDate>Sat, 09 Aug 2003 14:44:38 GMT</pubDate></item><item><title><![CDATA[Reply to Abfragen, ob eine Internet-Verbindung aktiv ist on Sat, 09 Aug 2003 15:07:14 GMT]]></title><description><![CDATA[<p>aus MSDN:</p>
<pre><code class="language-cpp">BOOL InternetGetConnectedState(
    OUT LPDWORD lpdwFlags,
    IN DWORD dwReserved
);
</code></pre>
<p>Retrieves the connected state of the local system.</p>
<p>Returns TRUE if there is an Internet connection, FALSE otherwise.</p>
<p>lpdwFlags<br />
Address of a double-word variable where the connection description should be returned.<br />
Can be a combination of the following values:<br />
INTERNET_CONNECTION_MODEM Local system uses a modem to connect to the Internet.<br />
INTERNET_CONNECTION_LAN Local system uses a local area network to connect to the Internet.<br />
INTERNET_CONNECTION_PROXY Local system uses a proxy server to connect to the Internet.<br />
INTERNET_CONNECTION_MODEM_BUSY Local system's modem is busy with a non-Internet connection.</p>
<p>dwReserved<br />
Reserved. Must be set to zero.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/327904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/327904</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sat, 09 Aug 2003 15:07:14 GMT</pubDate></item><item><title><![CDATA[Reply to Abfragen, ob eine Internet-Verbindung aktiv ist on Sat, 09 Aug 2003 16:17:45 GMT]]></title><description><![CDATA[<p>Genau das gleiche Problem hatte ich auch. Hier meine Lösung.</p>
<pre><code class="language-cpp">#include &quot;Wininet.h&quot; 
...
#pragma comment(lib,&quot;wininet&quot;)
...

bool CSetTime2Dlg::CheckForConnection()
{
	BOOL isOnline = false;

	if (InternetCheckConnection(&quot;http://www.google.de&quot;,FLAG_ICC_FORCE_CONNECTION,0))
	{
		isOnline = true;
	}

	return(isOnline);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/327963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/327963</guid><dc:creator><![CDATA[Matten]]></dc:creator><pubDate>Sat, 09 Aug 2003 16:17:45 GMT</pubDate></item></channel></rss>