Solved

RAS Win32 APIs launching Dial-up networking account dialoge

Posted on 1998-07-09
4
237 Views
Last Modified: 2012-05-04
Does anyone know of a Win32 API that can be used to call a specific Dial-up networking dialoge.  I need to support an attended dial-up connecting process.  I need an API that is supported on both 95 and NT.  I have looked at the RASAPIs, RasDial() and RasDialDlg().  RasDial() only supports unattended dialing, doesn't it?  I couldn't get it to simply launch the specified dial-up networking account.  And RasDialDlg() is only supported on NT.  Anyone have any suggestions.  An MFC class would be even better?
Thanks
0
Comment
Question by:ext3awf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1167534
On Windows NT, call RasDialDlg. On Windows 95, use the following code.

CString strCmd("rundll32 rnaui.dll,RnaDial ");
strCmd += "TheConnectionName";      // entry name
::WinExec(strCmd, SW_SHOWNORMAL);

0
 

Author Comment

by:ext3awf
ID: 1167535
Is there an API I can user for both NT and 95 or is there a command predecessor like "rundll32 rnaui.dll,RnaDial " for NT?
Additionally, I would prefer to use CreateProcess() instead of WinExec for Win32 programming.  Is there any reason why I can't I want to use CreateProcess() primarily becuase I need to close the process down when communications are complete.  
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1167536
I don't think there is an API for both NT and 95.

Yes, CreateProcess is the preferred function rather than WinExec. My example is just a quick-and-dirty one. You should be able to change it easily.

In fact this question has been asked several times in the Windows Programming topic area.
0
 

Expert Comment

by:dstruve
ID: 1167537
There is a shellexecuteex command I saw.  If you want Ill look for it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question