WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Programmatically setting preshared key in Windows 2000

 
   Home -> Windows Other -> -> RAS RSS
Next:  Notification of RAS hang ups/disconnections  
Author Message
Vanessa Deagan

External


Since: Mar 21, 2007
Posts: 2



(Msg. 1) Posted: Wed Mar 21, 2007 8:18 am
Post subject: Programmatically setting preshared key in Windows 2000
Archived from groups: microsoft>public>windowsnt>protocol>ras (more info?)

Hi,

From the MSDN, I'm using:

rasCredentials.dwSize = sizeof(RASCREDENTIALS);
rasCredentials.dwMask = RASCM_PreSharedKey;
strcpy(rasCredentials.szPassword, psk2.c_str());
DWORD res = RasSetCredentials(
NULL, // lpszPhonebook
dialParams.szEntryName, // lpszEntry
&rasCredentials, // lpCredentials
false // fClearCredentials
);

to set the pre-shared key value for a RAS VPN entry. This works fine on
Windows XP and Vista. However, in MSDN in mentions that RASCM_PreSharedKey
mask is ignored on Windows 2000.

How can I programmatically set the pre-shared key for a RAS VPN entry in
Windows 2000 (I'm using C++/Win32)?

--
Vanessa Deagan
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> -> RAS All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support