BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Default dialup connection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Sam
Guest





PostPosted: Thu Dec 29, 2005 6:30 pm    Post subject: Default dialup connection Reply with quote



I can get a list of the dialup connection using RASDIALPARAMS but how do
I find out which is set as the default?

Thanks in advance.


Sam

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Dec 29, 2005 7:50 pm    Post subject: Re: Default dialup connection Reply with quote




"Sam" <Sam75Perkins (AT) abc (DOT) com> wrote


Quote:
I can get a list of the dialup connection using RASDIALPARAMS

I am assuming that you are using RasEnumEntries() and
RasGetEntryDialParams(), correct?

Quote:
but how do I find out which is set as the default?

Under Win9x/ME, you'll have to look in the Registry manually. On my Win98SE
machine, my default connection is listed here:

HKEY_CURRENT_USERRemoteAccess
"InternetProfile"="The Entry Name"

Under NT/2K/XP/2K3, you can use RasGetAutodialAddress(), specifying NULL for
the lpszAddress parameter.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.