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

A

Anjan Bhowmik

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?
 
N

Nicholas Paldino [.NET/C# MVP]

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

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

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 :)
 
A

Anjan Bhowmik

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
(e-mail address removed)

Thnx very much
 
A

Anjan Bhowmik

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
(e-mail address removed)

Thnx very much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top