How to discover which network adapter is connected to internet?
Posted on 2004-09-29
I want to discover which network adpter is connected to the internet. For example: I have a LAN internet connection and a DialUP internet connection, I can navigate on internet using LAN or Modem (DialUp) and I want know which LAN or Modem is connected.
Using this code I can get type of my internet connection, but I don't know what adapter is connected to internet.
Function TfrmMSNListen.ConnectionKind :boolean;
if Result then
if (flags and INTERNET_CONNECTION_MODEM) = INTERNET_CONNECTION_MODEM then
if (flags and INTERNET_CONNECTION_LAN) = INTERNET_CONNECTION_LAN then
if (flags and INTERNET_CONNECTION_PROXY) = INTERNET_CONNECTION_PROXY then
if (flags and INTERNET_CONNECTION_MODEM_BUSY)=INTERNET_CONNECTION_MODEM_BUSY then
Please help me!