get_connection_parameters
get_connection_parameters(); - get parmeters connected to the Internet
After testing, the function returns the result of its work to the script :
Connection parameters – properties of connecting to the Internet as a string with flags :
INTERNET_CONNECTION_CONFIGURED – the system has a correctly configured connection to the net, but not the fact that it is currently connected to it
internet_connection_lan – uses a LAN for Internet connection
INTERNET_CONNECTION_MODEM – uses the modem for Internet connection
INTERNET_CONNECTION_MODEM_BUSY – the modem is busy
INTERNET_CONNECTION_OFFLINE – now in offline mode
INTERNET_CONNECTION_PROXY – uses a proxy server to connect to the Internet