How do i query the dial up connections present in the system & use any of them to dial and connect to the internet?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anjan Bhowmik

    How do i query the dial up connections present in the system & use any of them to dial and connect to the internet?

    I want to query the dial up connections present in the system, which will
    host my application.

    My user want to connect automatically to the internet if the dialup
    connection was hanged.

    Ho do i do that?

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: How do i query the dial up connections present in the system & use any of them to dial and connect to the internet?

    Anjan,

    If you are going to connect through a dial-up connection, your best bet
    would be to call the InternetAutodia l in the WinInet API. You will have to
    do this through the P/Invoke layer, of course and you can find a definition
    at http://www.pinvoke.net.

    If you need greater access to dial up functionality, then you will want
    to look at the RAS API.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Anjan Bhowmik" <anjan011@gmail .comwrote in message
    news:ECD5CB31-D46E-4AF9-B130-934511CE71E5@mi crosoft.com...
    >I want to query the dial up connections present in the system, which will
    >host my application.
    >
    My user want to connect automatically to the internet if the dialup
    connection was hanged.
    >
    Ho do i do that?

    Comment

    • Ignacio Machin \( .NET/ C# MVP \)

      #3
      Re: How do i query the dial up connections present in the system &amp; use any of them to dial and connect to the internet?

      Hi,

      If you need to use RAS you will have to P/invoke the RAS API (not an easy
      task).
      If you want to dial the default connection then go to IE and set up a
      default connection, then in your code just se WebReqest and it will dial the
      default connection.

      IF nevertheless you need to use RAS postback cause I have the code you will
      need :)

      "Anjan Bhowmik" <anjan011@gmail .comwrote in message
      news:ECD5CB31-D46E-4AF9-B130-934511CE71E5@mi crosoft.com...
      >I want to query the dial up connections present in the system, which will
      >host my application.
      >
      My user want to connect automatically to the internet if the dialup
      connection was hanged.
      >
      Ho do i do that?

      Comment

      • Anjan Bhowmik

        #4
        Re: How do i query the dial up connections present in the system &amp; use any of them to dial and connect to the internet?

        I am inteseted in RAS, as my client is not very familier with IE connection
        settings. So, can you provide me the code? you may send it to
        anjan011@gmail. com

        Thnx very much

        >
        IF nevertheless you need to use RAS postback cause I have the code you
        will need :)
        >

        Comment

        • Anjan Bhowmik

          #5
          Re: How do i query the dial up connections present in the system &amp; use any of them to dial and connect to the internet?

          I am inteseted in RAS, as my client is not very familier with IE connection
          settings. So, can you provide me the code? you may send it to
          anjan011@gmail. com

          Thnx very much

          >
          IF nevertheless you need to use RAS postback cause I have the code you
          will need :)
          >

          Comment

          Working...