establishing a VPN connection

September 10th, 2007 - 05:33 am ET by Bill | Report spam
I'm trying to find out how to programmatically establish a connection of a
VPN Network Connection to the VPN server. With answers from another forum
and searching around, I came across RasDial() and RasHangup() in the SDK.
Can anyone tell me if i'm on the right track here? It mentions things like
phonebook and I'm wondering if that means the objects available in Network
Connections.

I could either create a VPN Network Conenction and try to use RasDial to
initiate that or I could get the address, username and password and use
those to directly initiate the VPN connection.

Thanks
email Follow the discussionReplies 6 repliesReplies Make a reply

Similar topics

Replies

#1 Bill Brehm
September 11th, 2007 - 02:10 pm ET | Report spam
I've managed to get a VPN connection to connect using RasDial. Now I can't
figure out how to find out the IP address of the VPN server connection I'm
connected to or my own VPN client connection IP address. Any help please???


"Bill >" <<don't want more spam> wrote in message
news:
I'm trying to find out how to programmatically establish a connection of a
VPN Network Connection to the VPN server. With answers from another forum
and searching around, I came across RasDial() and RasHangup() in the SDK.
Can anyone tell me if i'm on the right track here? It mentions things like
phonebook and I'm wondering if that means the objects available in Network
Connections.

I could either create a VPN Network Conenction and try to use RasDial to
initiate that or I could get the address, username and password and use
those to directly initiate the VPN connection.

Thanks



Replies Reply to this message
#2 Arkady Frenkel
September 13th, 2007 - 01:02 am ET | Report spam
I answered on this network NG, as to how netstat -o do that programmatically
you need
to use AllocateAndGetTcpExTableFromStack()
Arkady

"Bill Brehm" <don't want spam> wrote in message
news:
I've managed to get a VPN connection to connect using RasDial. Now I can't
figure out how to find out the IP address of the VPN server connection I'm
connected to or my own VPN client connection IP address. Any help
please???


"Bill >" <<don't want more spam> wrote in message
news:
I'm trying to find out how to programmatically establish a connection of
a VPN Network Connection to the VPN server. With answers from another
forum and searching around, I came across RasDial() and RasHangup() in
the SDK. Can anyone tell me if i'm on the right track here? It mentions
things like phonebook and I'm wondering if that means the objects
available in Network Connections.

I could either create a VPN Network Conenction and try to use RasDial to
initiate that or I could get the address, username and password and use
those to directly initiate the VPN connection.

Thanks







Replies Reply to this message
#3 Bill
September 15th, 2007 - 12:47 am ET | Report spam
AllocateAndGetTcpExTableFromStack is not in my MSDN but i found out online
that it is being obsoleted and they recommend GetTcpTable() instead.
However, although this has been around since
Windows 98 it depends on Iphlpapi.h which is not anywhere on my PC. Do I
have to install something for that to be available? I'm using MSVC++ 6.0.

"Arkady Frenkel" wrote in message
news:O6g0$
I answered on this network NG, as to how netstat -o do that
programmatically you need
to use AllocateAndGetTcpExTableFromStack()
Arkady

"Bill Brehm" <don't want spam> wrote in message
news:
I've managed to get a VPN connection to connect using RasDial. Now I
can't figure out how to find out the IP address of the VPN server
connection I'm connected to or my own VPN client connection IP address.
Any help please???


"Bill >" <<don't want more spam> wrote in message
news:
I'm trying to find out how to programmatically establish a connection of
a VPN Network Connection to the VPN server. With answers from another
forum and searching around, I came across RasDial() and RasHangup() in
the SDK. Can anyone tell me if i'm on the right track here? It mentions
things like phonebook and I'm wondering if that means the objects
available in Network Connections.

I could either create a VPN Network Conenction and try to use RasDial to
initiate that or I could get the address, username and password and use
those to directly initiate the VPN connection.

Thanks











Replies Reply to this message
#4 Sam Hobbs
September 15th, 2007 - 03:33 am ET | Report spam
Have you installed the Windows (Platform) SDK?


"Bill >" <<don't want more spam> wrote in message
news:
AllocateAndGetTcpExTableFromStack is not in my MSDN but i found out online
that it is being obsoleted and they recommend GetTcpTable() instead.
However, although this has been around since
Windows 98 it depends on Iphlpapi.h which is not anywhere on my PC. Do I
have to install something for that to be available? I'm using MSVC++ 6.0.

"Arkady Frenkel" wrote in message
news:O6g0$
I answered on this network NG, as to how netstat -o do that
programmatically you need
to use AllocateAndGetTcpExTableFromStack()
Arkady

"Bill Brehm" <don't want spam> wrote in message
news:
I've managed to get a VPN connection to connect using RasDial. Now I
can't figure out how to find out the IP address of the VPN server
connection I'm connected to or my own VPN client connection IP address.
Any help please???


"Bill >" <<don't want more spam> wrote in message
news:
I'm trying to find out how to programmatically establish a connection
of a VPN Network Connection to the VPN server. With answers from
another forum and searching around, I came across RasDial() and
RasHangup() in the SDK. Can anyone tell me if i'm on the right track
here? It mentions things like phonebook and I'm wondering if that means
the objects available in Network Connections.

I could either create a VPN Network Conenction and try to use RasDial
to initiate that or I could get the address, username and password and
use those to directly initiate the VPN connection.

Thanks















Replies Reply to this message
#5 Arkady Frenkel
September 15th, 2007 - 06:58 am ET | Report spam
That not API in Windows 9x but that from XP that documented ( depricated in
Vista )
http://msdn2.microsoft.com/en-us/li...65804.aspx
Arkady

"Bill >" <<don't want more spam> wrote in message
news:
AllocateAndGetTcpExTableFromStack is not in my MSDN but i found out online
that it is being obsoleted and they recommend GetTcpTable() instead.
However, although this has been around since
Windows 98 it depends on Iphlpapi.h which is not anywhere on my PC. Do I
have to install something for that to be available? I'm using MSVC++ 6.0.

"Arkady Frenkel" wrote in message
news:O6g0$
I answered on this network NG, as to how netstat -o do that
programmatically you need
to use AllocateAndGetTcpExTableFromStack()
Arkady

"Bill Brehm" <don't want spam> wrote in message
news:
I've managed to get a VPN connection to connect using RasDial. Now I
can't figure out how to find out the IP address of the VPN server
connection I'm connected to or my own VPN client connection IP address.
Any help please???


"Bill >" <<don't want more spam> wrote in message
news:
I'm trying to find out how to programmatically establish a connection
of a VPN Network Connection to the VPN server. With answers from
another forum and searching around, I came across RasDial() and
RasHangup() in the SDK. Can anyone tell me if i'm on the right track
here? It mentions things like phonebook and I'm wondering if that means
the objects available in Network Connections.

I could either create a VPN Network Conenction and try to use RasDial
to initiate that or I could get the address, username and password and
use those to directly initiate the VPN connection.

Thanks















Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search