From an application I need to find out if the computer in which it's running
is currently connected to the Internet, and if it's not, I need to establish
the connection to the Internet from my code (gathering the needed data from
the Internet Explorer configuration), and to know when the connection has
established (by invoking the process synchronously, or receiving a
notification by a callback, etc.).

Does anyone know how to achieve this?

Thanks in advance,

Leonardo Bosi
Proximity Soft
Buenos Aires, Argentina