Solved

Using RASDIAL API call from VB

Posted on 1998-06-03
1
1,417 Views
Last Modified: 2012-08-13
Are there examples of using the RASDIAL API call for Win95
from VB?  Is there an OCX already written to interface with
Win95 Dial-Up Networking (DUN)?
0
Comment
Question by:barroncollier
[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
1 Comment
 
LVL 1

Accepted Solution

by:
JayMerritt earned 200 total points
ID: 1462392
The following Microsoft document refers to a VB32RAS.EXE available at their ftp site.


SAMPLE: Using Win32 RAS Functions from Visual Basic 4.0 32-bit
Last reviewed: September 17, 1997
Article ID: Q150948  
4.00    | 4.00
WINDOWS | WINDOWS NT kbprg kbfile kbhowto
The information in this article applies to:

Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 32-bit only, for Windows, version 4.0


SUMMARY
It is possible to call all of the current Win32 Remote Access Service (RAS) API functions from the 32-bit edition of Visual Basic 4.0. Sample code is included in a file named Vb32ras.exe that demonstrates calling the following RAS functions and handles the differences between Windows NT and Windows 95:


  RasCreatePhonebookEntry
  RasDial (synchronously and asynchronously)
  RasDialFunc
  RasDialFunc1
  RasEditPhonebookEntry
  RasEnumConnections
  RasEnumEntries
  RasGetConnectStatus
  RasGetEntryDialParams
  RasGetErrorString
  RasGetProjectionInfo
  RasHangUp
  RasSetEntryDialParams

The sample consists of two Visual Basic Projects. One project contains an OLE Automation server that wraps the RAS API, and the other project contains an OLE Automation controller that accesses the server. The server project can be opened and run using the Standard Edition of Visual Basic 4.0, but the client needs the Professional or Enterprise Edition of Visual Basic 4.0 to be run in the environment due to the use of the Treeview custom control. For additional information, please refer to the text file included with the sample.
NOTE: This sample is unsupported, so please do not contact Microsoft Technical Support for assistance with this sample.


| INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
| ACCOMPANY THIS DOCUMENT (collectively referred to as Microsoft     |
| Software Library [MSL] VB32RAS.EXE) IS PROVIDED "AS IS" WITHOUT    |
| WARRANTY ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT      |
| NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR    |
| FITNESS FOR A PARTICULAR PURPOSE. This MSL file may not be        |
| distributed for profit.                                            |
|                                          |
|                                                                    |
| Copyright 1996 Microsoft Corporation. All Rights Reserved.         |
| Microsoft is a registered trademark of Microsoft Corporation.      |
 --------------------------------------------------------------------

MORE INFORMATION
The following file is available for download from the Microsoft Software Library:


 ~ Vb32ras.exe (size: 76528 bytes)

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from
               Online Services
 

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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