?
Solved

RASdial on Win 98

Posted on 1998-11-30
1
Medium Priority
?
327 Views
Last Modified: 2013-12-03
1 .Using Windows 98 I want to use RASDIAL() in VC++5.0 to have my code connect to my ISP using my default Dial-Up Networking connectoid, the one that comes up when I launch my browser or Windows Messaging using Internet Mail.

2.I have implemented the RASdial sample code in the Microsoft platform SDK (RASBerry), but cannot retrieve the default login and password into RASDIALPARAMS. The member values for szUserName and szPassword are null. If I manually set them in the code, RASDIAL() works fine and authenticates with my ISP.

3. The MSDN on line documentation provides no additional info. Without having to prompt the user for this info, how can I use the info already stored in dial-up networking to connect without user intervention?
0
Comment
Question by:solr
[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
1 Comment
 

Accepted Solution

by:
bobline earned 400 total points
ID: 1416499
Here's a piece of code from my program:
________________________________________
RASDIALPARAMS rdp;
BOOL PassExists = FALSE;
CString num;
strcpy(rdp.szEntryName, name);
rdp.szPhoneNumber[0] = 0;
rdp.szUserName[0] = 0;
rdp.szPassword[0] = 0;
rdp.dwSize = sizeof(RASDIALPARAMS);
if(RasGetEntryDialParams(NULL, &rdp, &PassExists)==ERROR_SUCCESS)
{
  num = rdp.szPhoneNumber;
  account = rdp.szUserName;
  if(PassExists)
     password = rdp.szPassword;
}
___________________________________
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

801 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