| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sat Jul 19, 2003 12:31 pm Post subject: DialUp / Internet connection (How to make an auto dialer) |
|
|
Hi,
Im trying to make a program that can connect the default internet connection when ever it detects that no internet connection is present.
It also need a way to detect a connect thats still connected but it dead.
So far I have managed to check if its online by using vdsinet.dll and the http command. It gets the header info from a site like google and if it is sucessful then its online.
Now my problem, I cant seem to find a way to dial the default connection or detect a dead one.
Also the program and dlls must work under XP.
Is there an api command for dialing default connections or some other non dll way?
Thank you |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 19, 2003 9:43 pm Post subject: |
|
|
I don't know, but if you do decide to use a DLL you can use the VDSRAS.DLL  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jul 20, 2003 3:10 am Post subject: |
|
|
You can use the RasDial API function in kernel32.dll.
You can also get much more information on related functions too - refer W32.hlp file.If U dont have one refer the resources section of this forum.
Just to inform you - it's going to be a little difficult unless U have worked with API's in VDS before or atleast in VB (things are similar to an extent).
If i get time i might write an example. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Mon Jul 21, 2003 11:25 pm Post subject: |
|
|
| Thank you, for that I shall check out the API route. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jul 21, 2003 11:52 pm Post subject: |
|
|
| CodeScript wrote: | | You can use the RasDial API function in kernel32.dll. |
WIN32.HLP says it's in rasapi32.dll Just wondering...  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jul 22, 2003 1:36 am Post subject: |
|
|
It is, CodeScript was drinking  _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 22, 2003 3:49 am Post subject: |
|
|
Yeah but only water(H2O) . I just said it off hand without refering. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jul 22, 2003 11:16 am Post subject: |
|
|
It's okay, I wouldn't have any clue off-hand.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|