Results 1 to 2 of 2

Thread: 2 Questions about DUN

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2005
    Posts
    310

    2 Questions about DUN

    My first question is. is this possible to add new Dial-up profile using vb.net? And make that as default dialup
    with this strings..
    Connection Name: Any Profile Name
    Dial #: *99***1#

    2nd question is:

    I tried to code to dial my DUN using .net.
    But How can I dial that without prompting me the dial window.

    Here is my code.
    Code:
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim DResult As Int32
    
            DResult = InternetDial(Me.Handle, "Profile Name", DialUpOptions.INTERNET_DIAL_UNATTENDED, mlConnection, 0)
    
            If (DResult = ERROR_SUCCESS) Then
                MessageBox.Show("Dial Up Successful", "Dial-Up Connection")
            Else
                MessageBox.Show("UnSuccessFull Error Code" & DResult, "Dial-Up Connection")
            End If
        End Sub
    That code display only the dial window and not automatically dial a connection.

    Or point me to correct link to study.. thanks...
    I know RAS API, it's most of the RAS tut are in C++.. even in MSDN
    Last edited by dr_aybyd; Nov 27th, 2010 at 10:05 PM.
    VB 6.0 = "Self-Study" Then
    vb.NET = "Self-Study" Then
    C# = 'on going study.....

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