Solved

RAS Win32 APIs launching Dial-up networking account dialoge

Posted on 1998-07-09
4
230 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
IdTCPClient1->Disconnect(); not working 3 87
Arduino EDI - Programming language 3 117
Why  my code (program) build with old compiler? 11 113
C++ help/ Toy problem 19 56
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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 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