Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anjan Bhowmik - 15 Feb 2008 12:05 GMT
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] - 15 Feb 2008 12:18 GMT
Anjan,

   If you are going to connect through a dial-up connection, your best bet
would be to call the InternetAutodial 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.

Signature

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

>I want to query the dial up connections present in the system, which will
>host my application.
[quoted text clipped - 3 lines]
>
> Ho do i do that?
Ignacio Machin ( .NET/ C# MVP ) - 15 Feb 2008 12:25 GMT
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 :)

>I want to query the dial up connections present in the system, which will
>host my application.
[quoted text clipped - 3 lines]
>
> Ho do i do that?
Anjan Bhowmik - 16 Feb 2008 17:41 GMT
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 :)
Anjan Bhowmik - 16 Feb 2008 17:42 GMT
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 :)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.