Results 1 to 2 of 2

Thread: 2 Questions about DUN

  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.....

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2005
    Posts
    310

    Re: 2 Questions about DUN

    I found the description here
    http://msdn.microsoft.com/en-us/library/aa384587.aspx
    Maybe I got the solution..
    Remaining problem is how can I create a Dialup connection using vb.net

    The code I use is from here.

    The purpose of this project is to dial my 3G modem connection without using my default provider window,.
    Last edited by dr_aybyd; Nov 27th, 2010 at 11:04 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