ext3awf
asked on
RAS Win32 APIs launching Dial-up networking account dialoge
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
Thanks
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is a shellexecuteex command I saw. If you want Ill look for it.
CString strCmd("rundll32 rnaui.dll,RnaDial ");
strCmd += "TheConnectionName"; // entry name
::WinExec(strCmd, SW_SHOWNORMAL);