Delphi rapid detection network to determine whether the network cable is unplugged. But it can not determine whether access to the Internet

 

https://blog.csdn.net/chelen_jak/article/details/50204145

Delphi quickly detect whether networking

Transfer: http://www.delphitop.com/html/wangluo/2990.html

use the WinInet; 
  whether the correct line detection method //
  IF The InternetGetConnectedState (nil, 0) the then
  the begin
    Self.Caption: = 'line';
  End
  the else
  the begin
    Self.Caption: = 'off';
  End;
whether tested, and QQ line detection is substantially the same.

Guess you like

Origin www.cnblogs.com/delphi-xe5/p/10947399.html