Solved

RASdial on Win 98

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now