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
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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... > 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 >
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:O5qaS8J9HHA.5164@TK2MSFTNGP05.phx.gbl... > 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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... >> 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 >> > >
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$Mc9HHA.600@TK2MSFTNGP05.phx.gbl... >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:O5qaS8J9HHA.5164@TK2MSFTNGP05.phx.gbl... >> 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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... >>> 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 >>> >> >> > >
Have you installed the Windows (Platform) SDK? "Bill >" <<don't want more spam> wrote in message news:uKs1kL19HHA.4200@TK2MSFTNGP04.phx.gbl... > 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$Mc9HHA.600@TK2MSFTNGP05.phx.gbl... >>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:O5qaS8J9HHA.5164@TK2MSFTNGP05.phx.gbl... >>> 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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... >>>> 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 >>>> >>> >>> >> >> > >
That not API in Windows 9x but that from XP that documented ( depricated in Vista ) http://msdn2.microsoft.com/en-us/library/aa365804.aspx Arkady "Bill >" <<don't want more spam> wrote in message news:uKs1kL19HHA.4200@TK2MSFTNGP04.phx.gbl... > 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$Mc9HHA.600@TK2MSFTNGP05.phx.gbl... >>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:O5qaS8J9HHA.5164@TK2MSFTNGP05.phx.gbl... >>> 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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... >>>> 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 >>>> >>> >>> >> >> > >
BTW I don't think that GetTcpTable() will be helpful in this case but GetExtendedTcpTable() http://msdn2.microsoft.com/en-us/library/aa365928.aspx Arkady "Arkady Frenkel" wrote in message news:OnOPdd49HHA.748@TK2MSFTNGP04.phx.gbl... > That not API in Windows 9x but that from XP that documented ( depricated > in Vista ) > http://msdn2.microsoft.com/en-us/library/aa365804.aspx > Arkady > > "Bill >" <<don't want more spam> wrote in message > news:uKs1kL19HHA.4200@TK2MSFTNGP04.phx.gbl... >> 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$Mc9HHA.600@TK2MSFTNGP05.phx.gbl... >>>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:O5qaS8J9HHA.5164@TK2MSFTNGP05.phx.gbl... >>>> 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:uKkO4z48HHA.1204@TK2MSFTNGP03.phx.gbl... >>>>> 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 >>>>> >>>> >>>> >>> >>> >> >> > >