Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Automating Dial-up Networking in WinNT

Does anyone know how to automate dial-up networking from a C/C++/Visual Basic/Visual Foxpro program?
0
mgonyea
Asked:
mgonyea
  • 8
  • 5
  • 3
1 Solution
 
alexoCommented:
Check RasDial() and friends.
0
 
alexoCommented:
0
 
mgonyeaAuthor Commented:
I have performed a "Quick View" on the RASAPI32.DLL file and I've noticed the RasDialA, RasDialW, etc exports; however, it doesn't give me the parameter list and types.  What I would ideally like is to use an existing Dial up profile from a program, and allow the program to dial in without any user intervention.  I will try the ftp site you recommended, but I'm looking for the actual DLL call I would have to make in order for the program to dial.
If the EXE file shows me how to do this, I will reward you with the points. :)
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
chensuCommented:
In addition to this, you may use RasDialDlg on Windows NT.

If IE4 is installed, you can also use

Automatic Dialing Functions

The functions described in this section handle dial-up access to the Internet.

InternetAutodial  
InternetAutodialHangup  
InternetDial  
InternetGetConnectedState  
InternetGoOnline  
InternetHangUp  
InternetSetDialState  

0
 
mgonyeaAuthor Commented:
I haven't had time to look at all the C files from the self-extract file.  I will let everyone know who gets the points and what percentage.  Sorry to keep you all waiting
0
 
alexoCommented:
>> If the EXE file shows me how to do this, I will reward you with the points. :)
The EXE file is a self-extracting archive containing source files.  Therefore, yes, it will show you how to do that.
0
 
mgonyeaAuthor Commented:
For chensu:
You mentioned the Internet Dialing functions of IE4.  I have installed an up-to-date (SP1) of IE4 and I can't find the DLL that holds those functions.  Can you tell me where they are?  Thanks
0
 
chensuCommented:
They reside in the Wininet.dll. You can find the header file (Wininet.h) and import library (Wininet.lib) in the lastest Platform SDK or Internet Client SDK (http://www.microsoft.com/msdn/sdk).
0
 
alexoCommented:
Did you look at the example?
0
 
mgonyeaAuthor Commented:
I looked at the example, and lo and behold, it was missing a header file.  The RAS.H file was missing.  I will be using Visual FoxPro to try this auto-dialing, so I have to convert from C/C++ to FoxPro.  The example doesn't tell me the parameter types for this function call, and since the RAS.ZH file is missing, I can't find out the structure format of RASDIALPARAMS.  I will check the SDK site for info on this.  
0
 
alexoCommented:
The RAS.H is not missing (at least not more than WINDOWS.H is).
You can lo and behold RAS.H in the SDK distribution or in the include directory of any Win32 compatible C/C++ compiler.
Since the example was meant to be compiled with a C compiler, it seems logical.
0
 
mgonyeaAuthor Commented:
Question for alexo:  Does RasDial use an existing profile from setting up an Internet connection, or does it just dial the modem?  (If this works, I will award you both with points. :) )

For chensu:
You mentioned some DLL calls in the WININET.DLL file.  There are some connection functions in the WinNT distribution version of Wininet.dll, but I don't know what parameters that these calls need. Quick view just doesn't cut it :)  Anyhow,  if you could let me know where I could find this information (or information on ANY/ALL API calls) I will award you with come points as well.
0
 
mgonyeaAuthor Commented:
Question for alexo:  Does RasDial use an existing profile from setting up an Internet connection, or does it just dial the modem?  (If this works, I will award you both with points. :) )

For chensu:
You mentioned some DLL calls in the WININET.DLL file.  There are some connection functions in the WinNT distribution version of Wininet.dll, but I don't know what parameters that these calls need. Quick view just doesn't cut it :)  Anyhow,  if you could let me know where I could find this information,I will award you with some points as well.  If you can find info on MOST/ALL DLL paramater lists, I will award you with more.
0
 
mgonyeaAuthor Commented:
please ignore the double post
0
 
chensuCommented:
RasDial uses the information you pass to establish a RAS connection.

You can find the documentation from the following sources:

1. The documentation of Windows Platform SDK on MSDN CDs.
2. The documentation of Internet Client SDK on MSDN CDs.
3. The documentation of Internet Client SDK downloadable at http://www.microsoft.com/msdn/sdk.
4. Go to http://www.microsoft.com/msdn to register and then you can access the MSDN Library on line which contains the documentation of Windows Platform SDK.

It is under SDK documentation\Platform SDK\Internet Networking and Distributed Services\Internet Explorer Reference\Internet Tools & Technologies\WinInet API.
0
 
mgonyeaAuthor Commented:
Thanks to you all who participated.  Thanks for your patience as I cannot regularly check up on this site.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 8
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now