Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function ConnectionType(var ConType:String): Boolean;
var
flags: DWORD;
begin
Result := InternetGetConnectedState(@flags, 0);
if Result then
begin
if (flags and INTERNET_CONNECTION_MODEM) =
INTERNET_CONNECTION_MODEM
then ConType := 'Modem';
if (flags and INTERNET_CONNECTION_LAN) =
INTERNET_CONNECTION_LAN
then ConType := 'LAN';
if (flags and INTERNET_CONNECTION_PROXY) =
INTERNET_CONNECTION_PROXY
then ConType := 'Proxy';
if (flags and INTERNET_CONNECTION_MODEM_BUSY) =
INTERNET_CONNECTION_MODEM_BUSY then
ConType := 'Modem Busy';
end;
end;