Solved

Create VPN Connection

Posted on 2004-10-06
4
729 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
4 Comments
 
LVL 1

Accepted Solution

by:
sunil_bandaru earned 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

828 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