Hello,
How can I programmatically retrieve the current connection type (eg. LAN or Direct connection).
InternetGetConnectedState(&ConTypeRet, 0) isn't very reliable.
For instance, I'm connected to a wireless network, but ConTypeRet is 18 which is INTERNET_CONNECTION_LAN & INTERNET_RAS_INSTALLED. Isn't there anyway to make sure that ConTypeRet is either INTERNET_CONNECTION_LAN or INTERNET_CONNECTION_MODEM