Home All Groups Group Topic Archive Search About

open an existing dial-up connection from vb

Author
20 Sep 2005 5:51 PM
steve
i would like to make a dial-up connection from vb.

it would seem that the simplest way would be to use an existing connection
saved as a dial-up connection under network connections.  the connection
exists as a desktop icon (shortcut) referencing a target located in Network
Connections defined as {BA126AD7-2166-11D1-B1D0-00805FC1270E}.

to use the desktop icon, i would need to execute the shortcut and click the
dial button in the window.  and to disconnect i need to execute the shortcut
and click the disconnect button.

or is there a better way to just generate the connection from scratch in vb.
this is not just a simple modem to modem call, but rather is a PPP call
using tcp/ip, and calling into a plc device requiring a user name and
password.

any suggestions would be appreciated.

steve

Author
20 Sep 2005 7:49 PM
DRBarkley
Show quote Hide quote
"steve" <steve@nospam.com> wrote in message
news:eap3swgvFHA.2960@tk2msftngp13.phx.gbl...
> i would like to make a dial-up connection from vb.
>
> it would seem that the simplest way would be to use an existing connection
> saved as a dial-up connection under network connections.  the connection
> exists as a desktop icon (shortcut) referencing a target located in
Network
> Connections defined as {BA126AD7-2166-11D1-B1D0-00805FC1270E}.
>
> to use the desktop icon, i would need to execute the shortcut and click
the
> dial button in the window.  and to disconnect i need to execute the
shortcut
> and click the disconnect button.
>
> or is there a better way to just generate the connection from scratch in
vb.
> this is not just a simple modem to modem call, but rather is a PPP call
> using tcp/ip, and calling into a plc device requiring a user name and
> password.
>
> any suggestions would be appreciated.
>
> steve
>
>

Steve,

You can set up a phonebook entry, then shell to the RasDial, and pass
appropriate PhonebookEntry, password, etc.

HTH,

DRBarkley