本文整理自网络,侵删。
function isConnectNet: Boolean;
var
Types : Integer;
begin
Types := INTERNET_CONNECTION_MODEM +
INTERNET_CONNECTION_LAN +
INTERNET_CONNECTION_PROXY;
Result := InternetGetConnectedState(@types, 0);
end;
相关阅读 >>
Delphi kbmmw sampleservice/sampleclient方式传输数据集
Delphi 实现dns上线域名解析(用于远控server)
Delphi : tstringlist的find,indexof和sort
更多相关阅读请进入《Delphi》频道 >>