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.
That code display only the dial window and not automatically dial a connection.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
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


Reply With Quote