`
v5qqcom
  • 浏览: 1276957 次
文章分类
社区版块
存档分类
最新评论

一句话判断网络是否联通

 
阅读更多

uses WinInet;

procedure TForm1.Button1Click(Sender: TObject);
begin
if InternetGetConnectedState(nil, 0) then ShowMessage('已连接');
end;

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics