0

Hello,
Can someone give me an idea on how to start and control a pppoe connection using code and not using rasdial.
Oh and i would also like to be able to specify the phonebook that i would like to use with full path.

Thank you,
Daniel

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by dghervas
0

Hello,
Can someone give me an idea on how to start and control a pppoe connection using code and not using rasdial.
Oh and i would also like to be able to specify the phonebook that i would like to use with full path.

Thank you,
Daniel

Use Process and ProcessInfo classes. Take a look AT and .

0

Hmmm i'm not sure that can help me.
How can i use task schedule to do this?

Curently i start a process that starts rasdial with the desired parameters. I wait for it to finish and i read the output to see if it was succesful or not.
then i use this to check if it's still up

Public Function CheckConnection() As Boolean

        Dim ni As System.Net.NetworkInformation.NetworkInterface() = _
               System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
        For Each Items As System.Net.NetworkInformation.NetworkInterface In ni
            If Items.Name = [connection name[ Then
                Return Items.OperationalStatus
                Exit Function
            End If
        Next
        Return 0
    End Function

My question is if there is the way to start the connection without using rasdial. Actualy without starting a process. I'm not sure i am explaining right.
Using windows api or something like that.


Thank you

Edited by dghervas: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.