473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Dial DUN before VPN Connection with WinInet API

Hello all,
i've a problem with connection to a VPN Network through WinInet API.

Scenario:

1 got 2 RAS-connections on my System: one for dialing into the internet
via modem and the second for establishing a PPTP connection to our
network. When dialing the second connection, the first connection is
dialed before. When connection via WinXP desktop this works pretty
good.

Now i want to dial the second connection with the WinInet API like:
DResult = InternetDial(Nothing, "VpnName",
DialUpOptions.INTERNET_DIAL_FORCE_PROMPT, mlConnection, 0)

This works, too , but the first connection is not dialed before. Does
anybody know a way to do this "chain-dialing" ?
(The shellcommand "RASDIAL VpnName" shows the same behaviour)..

Thanks, Axel

Sep 7 '06 #1
0 1379

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Davide Bedin | last post by:
Our .net application needs to open a dial up network connection to reach the internet and send and receive emails (we use a third party component for the email). Using wininet.ddl and...
9
by: sleepyant | last post by:
Hi, I've posted this question on several forum but have no response. So I hope anyone who have any idea what I'm talking about please give your solution or advice. My problem is I need to check...
1
by: Sean Barnes | last post by:
Hello all, I am having a bit a problem with the InternetDial function in the wininet.dll. The problem is that despite passing in a null terminated string as the lpszConnectoid param to the...
0
by: Paul Johnson | last post by:
I have not found code that can successfully opena dn close a connection, so I created the class below. It will open, disconnect and check the type of internet connection you have. Paul R....
2
by: news dur Wanadoo | last post by:
Dear all, I need to writte a VB application that establish a dial up connection to the internet, upload and file on a ftp, then close the connection. what's the easiest way to do it ? ...
10
by: Lars Netzel | last post by:
Hi! Is it possible to start a dial-up connection that is already created on the computer thru VB.NET, and then after it has dialed up get an idication of that there's a connection ( I guess ping...
2
by: Hardik Shah | last post by:
Hi, Sorry, I have to put same message more than three to four times , as I can't receive a responce. I want to connect my internet connection through my VB.Net Code. Is there any sample code,...
5
by: Frank Rizzo | last post by:
This is driving me nuts. I call the InternetDial API to open a dial-up connection and it just returns 0 (success) without actually making a call. Am I missing something really simple? I've tried...
4
by: Anjan Bhowmik | last post by:
I want to query the dial up connections present in the system, which will host my application. My user want to connect automatically to the internet if the dialup connection was hanged. Ho do...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.