Questions tagged [ras]

Remote Access Service.

Remote Access Service.
A Microsoft API that makes it possible to create applications to administer the routing and remote access service capabilities of the operating system, to function as a network router.
The RRAS server functionality follows and builds upon the Remote Access Service in Windows NT 4.0.
Developers can use RAS and RRAS to implement routing protocols.

69 questions
0
votes
1 answer

Add RasPreSharedKey value in c#

How to add RasPreSharedKey for the entry in c#? In VB there is : Imports DotRas ... VpnEntry.UpdateCredentials(RasPreSharedKey.Client, PresharedKey) but in c# there is no RasPreSharedKey type...
curiousity
  • 4,703
  • 8
  • 39
  • 59
0
votes
0 answers

DotRAS phone book add entry BUG

I am working with DotRas version 1.3.5166 (the latest version from codeplex) and it seems that I have found a severe bug =(( I am trying to add a new entries in the rasphone.pbk foreach (Tuple serv in servers) { …
curiousity
  • 4,703
  • 8
  • 39
  • 59
0
votes
3 answers

How to specify SSTP usage in DotRas?

I am trying to specify sstp connection in DotRas - I have found a sample how to do it - RasDevice device = RasDevice.GetDeviceByName("(SSTP)", RasDeviceType.Vpn, false); if (device == null) throw new Exception("Cannot get RasDevice"); …
curiousity
  • 4,703
  • 8
  • 39
  • 59
0
votes
0 answers

Create and Configure connection by executable

I have occasional discomfort about having to be setting up a RAS modem connection in over 300 PC users, have sought some method so that each user gets me an .exe or .bat file to run something on your PC this connection is created with the already…
afdez
  • 89
  • 7
0
votes
1 answer

RasGetEntryProperties returning all zeroes

I am trying to get information about one of my Phonebook entries using RasGetEntryProperties but when I do, the RASENTRY struct that returns contains zeroes or blanks for all elements except for dwSize and dwOptions. I don't have a full…
komodosp
  • 3,316
  • 2
  • 30
  • 59
0
votes
1 answer

C++: Disabling RequireCHAP and RequireMsCHAP2 in the Windows RAS API

I am writing a program that will set up a VPN on a user's computer. My sysadmin told me that the security page of the VPN must have these security settings checked, and no others. I have used this code as a basis for my own. My version sets almost…
0
votes
2 answers

dotRAS Disconnected State not triggered

Can someone give me a heads up... I'm trying to use the dotRAS .NET control, and this code to change the value of internetConnected (boolean) using an event handler... But it seems that the state RasConnectionState.Disconnected is not triggered by…
Darbio
  • 11,286
  • 12
  • 60
  • 100
0
votes
1 answer

How to use DotRas to connect a USB 3G modem and send AT commands?

I have found DotRas a wrapper for RAS. And this is what i was able to do with it private void btnConnect_Click(object sender, EventArgs e) { RasDevice device = RasDevice.GetDeviceByName("ZTE Proprietary USB Modem",…
Monzir
  • 621
  • 4
  • 9
  • 29
0
votes
1 answer

RAS API. sizeof(RASDIALPARAMS) is wrong. Error 632

I'm working with RAS API under Windows 7 x32. The following function returns error 632 (ERROR_INVALID_SIZE): int32_t set_username_passwd(wchar_t *entry_title) { RASDIALPARAMS ras_param; ZeroMemory(&ras_param, sizeof(RASDIALPARAMS)); …
Alexander
  • 959
  • 5
  • 11
  • 29
0
votes
1 answer

Unable to dial 3G Connection with DotRas (Error 628)

I am using DotRas 1.3.4823.23273 for Windows 7 with a Hauwei E3131 HSPA+ USB modem. I have the following function which is intended to dial the reas connection for the modem. public void Connect(string dialerEntryName) { string path…
Tjaart
  • 3,912
  • 2
  • 37
  • 61
0
votes
1 answer

DotRas Library for VS expres for windows phone

I'm working with c# at the moment and I'm making an application that makes a connection to a vpn. I downloaded the DotRas to do so, however the library's included doesn't support Visual Studio Express for windows phone. Does anyone has an…
0
votes
1 answer

RasDial Returns 633 in MFC Application

I am using RasDial API inside an MFC application. It turns out that API returns always 633 (The Port Is in Use or Not Configured) while the same code works fine in a command line application. Here is the code snippet RASDIALPARAMS rdParams; …
aagosh
  • 109
  • 1
  • 3
0
votes
1 answer

VS2012: 'rassapi.h' - No such file or directory

One project, that we are trying to port to VS2012 includes which is not part of SDK 8.0. Well, I found out that contains some defines, but some functions like RasAdminGetUserAccountServer and RasAdminUserSetInfo are still…
alex555
  • 1,676
  • 4
  • 27
  • 45
0
votes
1 answer

DotRas unauthorized access exception when adding phonebook an entry

I am devoloping an application with dotras dll. In the application my main goal is to connect to the internet with 3g USB modem. I am adding my code below : RasPhoneBook book = new RasPhoneBook(); book.Open(); dialer = new RasDialer(); …
0
votes
1 answer

Determine RasEntry structure size use RasGetEntryProperties in Delphi

I'm trying to create a DUN entry. I am calling RasGetEntryProperties with a lpRasEntry parameter of null. This should return the structure size in the lpdwEntryInfoSize parameter. Instead it returns an error - ERROR_INVALID_SIZE. How do I call…
user190616