HOWTO: Programmatically Launching Dial-Up Networking Connection

Last reviewed: December 18, 1997
Article ID: Q168256
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SUMMARY

Using the FoxPro RUN command, it is possible to programmatically launch a Windows 95 Dial-Up Networking connection.

MORE INFORMATION

The following syntax can be used to launch a Dial-Up Networking (DUN) connection:

   RUN /N Rundll Rnaui.dll,RnaDial <your DUN connection name>

For a connection named Test, use the following command to launch this connection:

   RUN /N Rundll Rnaui.dll,RnaDial Test

The function call RnaDial and the connection name are both case sensitive.

NOTE: Although there is a function within the Rnaui.dll file that enables you to programmatically dial, a function that allows you to programmatically disconnect is not available.

To view the functions available within Rnaui.dll or any .dll file, find the file, use the right mouse button (right-click) to select the file, and select QuickView. You can view the available programmatic functions from the listing under Export Table.

If QuickView is not available as a selection then QuickView needs to be installed. You can install QuickView using the Control Panel by selecting Add/Remove Programs, and then selecting the Windows 95 (or Windows NT) Setup tab. Next, click Accessories and select QuickView.

Below is the Export Table of available functions from the Rnaui.dll file:

   Export Table
   ------------
   Name:  Rnaui.dll
   Characteristics:  00000000
   Time Date Stamp:  320c06ce
   Version:  0.00
   Base:  00000001
   Number of Functions:  00000009
   Number of Names:  00000009

   Ordinal     Entry Point        Name
   -----------------------------------------
   0000         0000773e     DllCanUnloadNow
   0001         00002a80     DllGetClassObject
   0002         00007880     Remote_CreateEntry
   0003         000029ef     Remote_CreateInstance
   0004         00003988     Remote_EditEntry
   0005         00003260     Remote_Notify
   0006         000031b9     RnaDial
   0007         000031da     RnaRunImport
   0008         00007a6a     RnaWizard


REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q135338
   TITLE     : How To View Exported Functions in a DLL

Keywords          : FxenvOs vfoxwin kbsetup
Version           : 3.0 3.0b 5.0 5.0a
Platform          : WINDOWS
Issue type        : kbhowto


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.