473,473 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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?

Feb 15 '08 #1
4 1417
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Anjan Bhowmik" <an******@gmail.comwrote in message
news:EC**********************************@microsof t.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?
Feb 15 '08 #2
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" <an******@gmail.comwrote in message
news:EC**********************************@microsof t.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?
Feb 15 '08 #3
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
an******@gmail.com

Thnx very much

>
IF nevertheless you need to use RAS postback cause I have the code you
will need :)
Feb 16 '08 #4
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
an******@gmail.com

Thnx very much

>
IF nevertheless you need to use RAS postback cause I have the code you
will need :)
Feb 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Davide Bedin | last post by:
Our .net application needs to open a dial up network connection to reach the internet and send and receive emails (we use a third party component for the email). Using wininet.ddl and...
9
by: sleepyant | last post by:
Hi, I've posted this question on several forum but have no response. So I hope anyone who have any idea what I'm talking about please give your solution or advice. My problem is I need to check...
3
by: eranga | last post by:
i want to run a windows application wich is automaticall connect to the internet and upload a file to a server.and this application suppose to shdule in the windows shedule. so i am planing to do...
0
by: Paul Johnson | last post by:
I have not found code that can successfully opena dn close a connection, so I created the class below. It will open, disconnect and check the type of internet connection you have. Paul R....
2
by: news dur Wanadoo | last post by:
Dear all, I need to writte a VB application that establish a dial up connection to the internet, upload and file on a ftp, then close the connection. what's the easiest way to do it ? ...
5
by: Chris Devol | last post by:
My dial-up connection sometimes hangs up and has to re-connect. The VB2005 installer/downloader apparently doesn't know how to resume when the connection is re-established. It just aborts! I've...
11
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
2
by: ketty_ng81 | last post by:
No matter how many dial up networking entries I have, the RASWrapper.RasEnumEntries(null , null , entryNames, ref cb, out entries); always returns the right number of elelments in entryNames but...
3
by: scottietrek | last post by:
I have an application that needs to list Dial up connections. I know how to connect one once i know the name of the dial up connection using rasdial. Does anyone know how to list the Dial Up...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.