SAMPLE: Using Win32 RAS Functions from Visual Basic 32-Bit |
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 and Windows 98:
RasCreatePhonebookEntryThe 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.
RasDial (synchronously and asynchronously)
RasDialFunc
RasDialFunc1
RasEditPhonebookEntry
RasEnumConnections
RasEnumEntries
RasGetConnectStatus
RasGetEntryDialParams
RasGetErrorString
RasGetProjectionInfo
RasHangUp
RasSetEntryDialParams
---------------------------------------------------------------------
| 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. |
--------------------------------------------------------------------
The following file is available for download from the Microsoft
Download Center. Click the file name below to download the file:
Vb32ras.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center.
Additional query words:
Keywords : kbAPI kbAutomation kbVBp kbVBp400 kbVBp500 kbVBp600 kbGrpVB kbDSupport
Version : WINDOWS:4.0,5.0,6.0
Platform : WINDOWS
Issue type :
Technology :
|
Last Reviewed: April 24, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |