Programmatically Create Dialup Connection Objects | CodeGuru

Programmatically Create Dialup Connection Objects

Environment: This code has been successfully tested under Windows 9x and Windows NT CRasAbsLay CRasAbsLay is a simple class that encapsulates the functionality that you need from RAS to be able to create dialup connections in your Dialup connection folder. You cannot assume that all the machines have the RAS services available and you cannot […]

Written By
CodeGuru Staff
CodeGuru Staff
Jan 30, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: This code has been successfully tested under Windows 9x and Windows NT

CRasAbsLay

CRasAbsLay is a simple class that encapsulates the functionality that
you need from RAS to be able to create dialup connections in your Dialup
connection folder. You cannot assume that all the machines
have the RAS services available and you cannot link the RAS API library
statically to your application, that’s the reason why use the object CRas
instead of calling the API directly.

I wrote this class when I wrote a installation program from an ISP that
setup your Dialup Network with their connection settings.

Integrating the Code in Your Application


  1. Add  RasAbsLay.cpp and RasAbsLay.h to your project

  2. If you are not already including afxtempl.h, add it to your stdafx.h file

  3. Call CreatePhoneBookEntry member to create your connection

The Demo Project

The example code is a dialog-based application that prompts the user
for information regarding its connection and creates the proper dial-up settings.

Advertisement

Downloads

Download demo project – 15 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.