Sign in Join
Wiki copytemporary

Internet connection exist/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Internet connection exist/de

OldNewLine
1+Zurück zur Seite [[code examples/de|Code Beispiele]].
2+
3+Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
4+
5+Das Unterprogramm stellt fest, ob eine Internetverbindung besteht.
6+
7+Das Beispiel stellt fest, ob eine Internetverbindung besteht:
8+
9+``` pascal
10+uses
11+ WinInet, Windows, ...;
12+
13+ ...
14+
15+// Die Funktion prüft, ob der lokale PC eine Internetverbindung hat
16+function funIstOnline: boolean;
17+var
18+ dwrFlag: DWord;
19+begin
20+ Result := False;
21+
22+ dwrFlag := Internet_Connection_Modem or Internet_Connection_Lan or
23+ Internet_Connection_Proxy;
24+
25+ if InternetGetConnectedState(@dwrFlag, 0) = True then
26+ Result := (dwrFlag = 81);
27+
28+end;
29+```
30+
31+---
32+*From the Free Pascal wiki, page "Internet connection exist/de", as it stood on 2020-02-18 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history