Solved

Create VPN Connection

Posted on 2004-10-06
4
723 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now