Solved

Create VPN Connection

Posted on 2004-10-06
4
731 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 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

739 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