Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Create VPN Connection

Posted on 2004-10-06
4
Medium Priority
?
748 Views
Last Modified: 2012-06-27
Hello is it possible to create a vpn connection in windows 2K/XP programmatically. If so, how. Sample code or relevant api names would be much appreciated .
0
Comment
Question by:auk_ie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
sunil_bandaru earned 2000 total points
ID: 12248667
you can use RAS Api (API provided by microsoft). which has a function

RasCreatePhonebookEntry(...);

the requird header file: Ras.h
The required library: Rasapi32.lib

after this u have to just call the function like:

RasCreatePhonebookEntry( HWND hwnd,  LPCTSTR lpszPhonebook);

hwnd: Handle to the parent window of the dialog box. (u can give this NULL if u want)
lpszPhonebook: this is a pointer that specifies the full path and file name of a phone-book (PBK) file. If this parameter is NULL, the function uses the current default phone-book file.


the above funtion will bring up a wizard which can crate the connection u want. u can also dial the connection.

u cna also refer to TAPI API
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question