Solved

RASdial on Win 98

Posted on 1998-11-30
1
321 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
1 Comment
 

Accepted Solution

by:
bobline earned 100 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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