Results 1 to 3 of 3

Thread: RASAPI and Dial-up networking

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    19

    Cool

    Can anyone help,

    I tried using a Rasapi call to programatically setup a Dial-up networking shortcut to a new connection, but its all too hard for me at the moment.
    I was wondering if anyone out there has access to a utility or VB source code that will allow me click on an exe file (from a floppy), enter a phone number and automatically set up a dial-up connection to an ISP and make the shortcut on the desktop.
    There is no need to configure a protocol etc, I just have to help out a few regular Grandma and grandpa users who keep deleting their connection icons. (actually my reasons are sinister...its all about world domination via dial-up networking...its Evil I tell you..eeeevil!)
    If you believe in your lie, its the truth.

  2. #2
    Guest
    Maybe this will help?

    Code:
    Private Command1_Click()
    Dim X
    '"ConnectionsName" is the name under the icon in Dial-up Networking
    X = Shell("rundll32.exe rnaui.dll,RnaDial " & "ConnectionsName", 1)
    DoEvents
    'You can type in your password before the { below.
    SendKeys "{enter}", True
    DoEvents
    End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    19
    The code you've written seems to assume that a dial-up connection called "ConnectionsName" has already been set up.
    What I would like the code to do it set the connection details up programatically.
    As you would when you manually click on "Make a Connection" and enter the required details.
    I would like a connection to be configured via a simple click and reading the details either from a text file or have the user enter the phone number.
    If you believe in your lie, its the truth.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width