473,395 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Custom Dialer for ISP

Okay, I've been searching, and asking and hoping for a bone, and
thinking I may be on the wrong path. Everyone has seen either AOL's
or NetZero's dialer, I need to make one of those. I'm planning to
make it fairley generic, but make it customizable. Basically, I don't
want to have to have my users go through the DUN setup for windows, I
would like them to just click and go.
I think the track I need to go on is the RAS API, but not sure at this
point. I hope I'm making sense on this, it's 2:30 am and I'm going
nutz trying to find a solution.

Thanks...
Nov 20 '05 #1
3 1835
Hi Tibby,

I`ve been looking for something similar, althought not at any great depth,
and i carn`t seem to find anything either:(

If you find out, could you let me know?

simonDOTgreenATrixDOTcoDOTuk (Replace the Captials with the appropriate
symbol)

Many Thanks
MCN(Si)

"Tibby" <ti***@tiberiansun.us> wrote in message
news:34********************************@4ax.com...
Okay, I've been searching, and asking and hoping for a bone, and
thinking I may be on the wrong path. Everyone has seen either AOL's
or NetZero's dialer, I need to make one of those. I'm planning to
make it fairley generic, but make it customizable. Basically, I don't
want to have to have my users go through the DUN setup for windows, I
would like them to just click and go.
I think the track I need to go on is the RAS API, but not sure at this
point. I hope I'm making sense on this, it's 2:30 am and I'm going
nutz trying to find a solution.

Thanks...

Nov 20 '05 #2
Well, I've found the appropriate RAS API's, so I've got someone to
start, but it looks like I will have to do it in either C# or C++, I'm
not seeing a good way of doing it in VB.NET, unless I can figure out
how to pass an address of a delegate and provide an event interface
for the delegate.....
I'm willing to collaborate if that's what your looking for.....

tibbyATtiberiansunDOTus (Following your logic :) )
Tibby

On Mon, 12 Jul 2004 09:39:57 +0100, "MadCrazyNewbie" <te**@nospam.com>
wrote:
Hi Tibby,

I`ve been looking for something similar, althought not at any great depth,
and i carn`t seem to find anything either:(

If you find out, could you let me know?

simonDOTgreenATrixDOTcoDOTuk (Replace the Captials with the appropriate
symbol)

Many Thanks
MCN(Si)

"Tibby" <ti***@tiberiansun.us> wrote in message
news:34********************************@4ax.com.. .
Okay, I've been searching, and asking and hoping for a bone, and
thinking I may be on the wrong path. Everyone has seen either AOL's
or NetZero's dialer, I need to make one of those. I'm planning to
make it fairley generic, but make it customizable. Basically, I don't
want to have to have my users go through the DUN setup for windows, I
would like them to just click and go.
I think the track I need to go on is the RAS API, but not sure at this
point. I hope I'm making sense on this, it's 2:30 am and I'm going
nutz trying to find a solution.

Thanks...


Nov 20 '05 #3
I cant take credit for this. I found it on the internet ages ago:

use it like:
rasResult = ras.Connect("VadalsVPN")

__________________________________________________ ____________
Imports System

Imports System.Runtime.InteropServices

Public Class RASDialup

Private Declare Auto Function InternetDial Lib "wininet" _

(ByVal hwndParent As IntPtr, _

ByVal lpszConnection As String, _

ByVal dwFlags As Integer, _

ByRef lpdwConnection As Integer, _

ByVal dwReserved As Integer) As Integer

'Public Declare Auto Function InternetDial Lib "wininet.dll" (ByVal hwnd As
IntPtr, <[In]()> ByVal lpszConnectoid As String, ByVal dwFlags As Long,
ByRef lpdwConnection As Integer, ByVal dwReserved As Long) As Integer

'Public Declare Auto Function InternetDial Lib "wininet.dll" (ByVal hwnd As
IntPtr, <[In]()> ByVal lpszConnectoid As String, ByVal dwFlags As
System.UInt32, ByRef lpdwConnection As Integer, ByVal dwReserved As
System.UInt32) As Integer

'ToDo: Unsigned Integers not supported

'ToDo: Unsigned Integers not supported

Public Declare Auto Function InternetHangUp Lib "wininet.dll" (ByVal
lpdwConnection As Integer, ByVal dwReserved As Long) As Integer 'ToDo:
Unsigned Integers not supported

'Public Declare Auto Function InternetHangUp Lib "wininet.dll" (ByVal
lpdwConnection As Integer, ByVal dwReserved As System.UInt32) As Integer
'ToDo: Unsigned Integers not supported

Public Enum DialUpOptions

INTERNET_AUTODIAL_FORCE_ONLINE = &H1

INTERNET_AUTODIAL_FORCE_UNATTENDED = &H2

INTERNET_DIAL_FORCE_PROMPT = &H2000

INTERNET_DIAL_SHOW_OFFLINE = &H4000

INTERNET_DIAL_UNATTENDED = &H8000

End Enum 'DialUpOptions

'

'

'INTERNET_AUTODIAL_FORCE_ONLINE Forces an online connection.

'

'INTERNET_AUTODIAL_FORCE_UNATTENDED Forces an unattended Internet dial-up.
If

'user intervention is required, the function will fail.

'

'INTERNET_DIAL_FORCE_PROMPT Ignores the "dial automatically" setting and

'forces the dialing user interface to be displayed.

'

'INTERNET_DIAL_UNATTENDED Connects to the Internet through a modem, without

'displaying a user interface, if possible. Otherwise, the function will wait

'for user input.

'

'INTERNET_DIAL_SHOW_OFFLINE

'

Private m_connectionnumber As Integer

Public ReadOnly Property ConnectionNumber() As Integer

Get

Return m_connectionnumber

End Get

End Property

Public Function Connect(ByVal m_ConnectionName As String) As Integer

Dim retVal As Integer

retVal = InternetDial(IntPtr.Zero, m_ConnectionName, &H8000,
m_connectionnumber, 0)

Return retVal

End Function 'Connect

Public Sub Disconnect()

InternetHangUp(m_connectionnumber, 0)

End Sub 'Disconnect

End Class 'RASDialup

"Tibby" <ti***@tiberiansun.us> wrote in message
news:od********************************@4ax.com...
Well, I've found the appropriate RAS API's, so I've got someone to
start, but it looks like I will have to do it in either C# or C++, I'm
not seeing a good way of doing it in VB.NET, unless I can figure out
how to pass an address of a delegate and provide an event interface
for the delegate.....
I'm willing to collaborate if that's what your looking for.....

tibbyATtiberiansunDOTus (Following your logic :) )
Tibby

On Mon, 12 Jul 2004 09:39:57 +0100, "MadCrazyNewbie" <te**@nospam.com>
wrote:
Hi Tibby,

I`ve been looking for something similar, althought not at any great depth,and i carn`t seem to find anything either:(

If you find out, could you let me know?

simonDOTgreenATrixDOTcoDOTuk (Replace the Captials with the appropriate
symbol)

Many Thanks
MCN(Si)

"Tibby" <ti***@tiberiansun.us> wrote in message
news:34********************************@4ax.com.. .
Okay, I've been searching, and asking and hoping for a bone, and
thinking I may be on the wrong path. Everyone has seen either AOL's
or NetZero's dialer, I need to make one of those. I'm planning to
make it fairley generic, but make it customizable. Basically, I don't
want to have to have my users go through the DUN setup for windows, I
would like them to just click and go.
I think the track I need to go on is the RAS API, but not sure at this
point. I hope I'm making sense on this, it's 2:30 am and I'm going
nutz trying to find a solution.

Thanks...

Nov 20 '05 #4

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

Similar topics

1
by: Jenna | last post by:
I need to open client phone dialer from my asp page that contains phone number and fill phone number automatically when dialing. What should I need to start about this? Please help! Jen
2
by: JT | last post by:
I may be at the totally wrong spot to ask this, but can anyone point me in the direction of either a product or some VB7 or VC# code for a component that would be able to dial a phone number and...
2
by: deko | last post by:
The below code dials a phone number using C:\Program Files\Windows NT\dialer.exe. The problem is that dialing rules are ignored. MS Knowledge Base Article 266253 suggests that entering the phone...
1
by: deko | last post by:
I've searched the web but did not find any information about programmatically calling Microsoft Phone Dialer from Access using VBA. Can someone point me to a developers reference or other...
0
by: Damon | last post by:
I am using the following code (primarily wizard created) to dial a phone number on an access form via the on double click event. Application.Run "utility.wlib_AutoDial", stDialStr I want to...
0
by: curios | last post by:
Hello, I need help of finding reference in developing a softphone or online dialer similar used by skype or commonly used by VoIP provider companies. Are there any books or reference code that I...
1
by: rajans | last post by:
hi all, i am using windows xp professional. i am facing a problem with internet dialer. when i start my laptop its dialer automaticaly gets on. then i cancel it many times (abt 10 times) then it...
2
by: gabitzz | last post by:
Hello, I have an issue with a custom TSP written in C++. It should be used by outlook to make a call. It works fine under windows xp, but under Vista it doesn't. I am not sure which is the problem...
0
by: ajeetg | last post by:
I am developing a menu extension for Dialer screen for WM6 ( the screen that comes after we press call button on a contact ) Has any one tried that before ? I am aware of Menu extension for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
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,...

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.