473,480 Members | 2,325 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

is there a RAS-API in the .net framework

hello,
i want to know if there is a 'RAS-API' in the .net framework.
how can i list my dialup connections with vb.net?
and how can i query the status of a dialup connection?

thank you for helping me
gordian
Nov 21 '05 #1
2 4968
* "gordian" <pi****@gmx.de> scripsit:
i want to know if there is a 'RAS-API' in the .net framework.
how can i list my dialup connections with vb.net?
and how can i query the status of a dialup connection?


P/invoke on the RAS API, there is no managed way to do that.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
The only managed wrapper for RAS I've found is at the following link:

http://www.codeproject.com/Purgatory/rasdemo.asp

This is an 'unedited contribution' to CodeProject, of a C# project
implementing a wrapper around the RAS API.. There's no accompanying article,
and the code is undocumented. However the parts of it I've used seem to work
OK, and this is the only such code I've found on the web. Download it and
give it a try.

I'm slowly going through the source code and documenting it, for my own
edification. If I ever get the documentation up to the standard I try to
shoot for, I may try to find a way to re-contribute it, with the permission
of, and attribution to, the original author .

HTH,
Tom Dacon
Dacon Software Consulting

"gordian" <pi****@gmx.de> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
hello,
i want to know if there is a 'RAS-API' in the .net framework.
how can i list my dialup connections with vb.net?
and how can i query the status of a dialup connection?

thank you for helping me
gordian

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
968
by: Stuart Norris | last post by:
Hello All, Is it possible to define an event handler that triggers when a RAS connection is disconnected by the remote site. When I dial I use the RASDialFunc as a callback for the progress of...
1
4559
by: Mark Smith | last post by:
Hello Group, I am using the RASAPI to dial-to the internet using a GPRS modem using C#. Is it possible before dialling to retreive information about the COM port that the modem is connected...
0
1157
by: Mark Smith | last post by:
Hello Group, I am using the RASAPI to dial-to the internet using a GPRS modem using C#. Is it possible before dialling to retreive information about the COM port that the modem is connected...
2
8662
RAS
by: Marc Dolata | last post by:
Hi ng, I'm trying to implement RAS-functionality within my application. Establishing a connection is no problem (so far). But when I try to disconnect (using RasHangUp), the connection won't be...
8
18320
by: Brian Corbett | last post by:
I'm am trying to write a RAS Component that lists the Available RAS Connections on the current machine, I have got as far as getting the Connections using the RasEnumEntry API Getting the Entry...
2
2967
by: Black Ninja | last post by:
''''''''''''''The class needs to be called clsRAS, paste the following Imports System.Runtime.InteropServices Public Class ras Private Const RAS_MaxEntryName As Integer = 256 Private Const...
4
3521
by: Tibby | last post by:
I've gotten RAS to work with a C++ dll, but due to my limited knowledge of C++, I'm running into some memory problems. So, I'm giving this another shot using VB.NET, since I have a greater...
1
2516
by: den 2005 | last post by:
Hi everybody, How do you monitor the connection if it is still open or close for a dial up and internet RAS connection? I used both dialup and vpn RAS. The dialup is for modem connection and vpn...
0
776
by: Sharrukin Amiri \(Amtek\) | last post by:
Is there a RAS DSL Class or Active X Control for Windows? I want to integrate a DSL connection to an ISP Network. I am already doing this with a RAS Dialup connection programmatically. Thanks!...
3
2065
by: memo421 | last post by:
I have used following code, it works for one time. As I want loop to work for 4 times. The code should dial number and show dialing status in Listbox. It do this for one time only. When It loop for...
0
7051
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6915
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7054
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7097
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6750
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
2993
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
567
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.