Forcing a network connection to connect

Giganews Newsgroups
Subject: Forcing a network connection to connect
Posted by:  Jeffrey Adler (
Date: Sun, 2 Mar 2008

I have a network connection set up that uses a serial port.

If I go into Internet Explorer and access a web page or into Outlook, it
will try to establish the dial-up or direct connection.

What I am looking for is a programming way to cause the dial-up or direct
connect without having to go into one of these programs.

Essentially, I need to find out if the connection is up, and if not, cause
it to try to connect.  Any suggestions on where to look would be