RAS API Again...

OveRride
01-07-2001, 08:32 PM
Oh Well, Just a few posts before this one you could read something about a problem with RAS API declaration with VB6. As allways the answer has been fast and very explanatory. Now. what I exactly need is the VB API declaration for RASDial().

By the way, instead of using RASDial, I've found another function, which might be declared like that:

Declare Function InternetDial Lib "Wininet.dll" ( _
ByVal hwndParent As Long, _
ByVal lpszConnectoid As String, _
ByVal dwFlags As Long, _
dwConnection As Long, _
ByVal dwReserved As Long) _
As Long

It makes basically the same job, so what's the difference between Wininet.dll and Rasapi32.dll dialup functions?

stimpy
01-27-2001, 09:59 PM
I believe in simple terms wininet is more the Internet based dialer. It acts between the app and the RAS functions giving no more control than the normal internet dial up interface.
RasApi allows a miriad of functions to manipulate connections, get info like IP, get statistics, enumerateing connections on a system.
For example to dial a connection with Inet dial you need the name of a connection. Not possible on someone else machine( they can name it anything)
RasApi allows you to enumerate available connections and pass it on to RASDial.

Stimp

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum