Create a VPN Connection Programmatically

I am trying to develop a call logging program in vb.net. One of the things that I would like it to do would be to create, or open up, a vpn connection to a remote site and then invoke some sort of remote control program. It is the VPN bit that i am having trouble with.
   I am aware that I could shell back and call rasdial but as far as I can tell this will only work if there is a preconfigured vpn connection on the machine running the program. This call logging program is intended to work form anywhere (and there will be a web client as well) so there is no way that it can possibly be guaranteed that there will be a properly configured VPN DUN in the network and dialup connections bit of windows. As I see it then I have 3 choices, either

1.  Test for the existence of a VPN connection (no prob with rasdial and error levels) and somehow hack into wherever the make new connection wizzard goes and pass the arguments  (held somewhere in a database), which would create a VPN on every computer that, used this.

2.  Try and feed the details (ip address, username, password, VPN type etc.) into the VPN section of the network and dial up connections bit of windows, if i can ever find it, every time a VPN is required (my favourite solution) My workstation is win2k as far as I can tell there is not much difference between the DUN in W2K and XP but worst case scenario I will just detect the operating system and call a different chunk of code depending on the OS

3.  Write a vpn client from scratch (pretty much impossible)
Andy LearAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andy LearAuthor Commented:
I found the answer here
http://www.vbip.com/forum/topic.asp?id=6422
could someone tell me how to withdraw the points used to ask the question here please ?
0
BalrogCommented:
Closed, 400 points refunded.
Balrog
Community Support Moderator

Thanks for posting your answer.  Your example demonstrates the true spirit of EE.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.