Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Dialing/hanging up a dialup connection


Message #1 by toddpie@m... on Mon, 21 May 2001 11:21:16 -0500
Todd,

The changes you make in that box are global to
the whole operating system.  The MS .dlls for
connecting to the internet are "enhanced"
by each successive release of IE.

This integration of their browser with the operating system
is part of the reason for the Microsoft AntiTrust
Lawsuit.  

There are API's that you can call, but they require
a minimum of IE 4.0 to be installed on the machine
that you are running your program.  Since the API calls
were first implement by the wininet.dll file which
came with IE 4.0.
http://support.microsoft.com/support/kb/articles/Q252/3/69.ASP

Here are the API's with the appropriate MS documentation.
They are all written in C++, but with a little tweaking
you can translate the function declarations to API calls.

DWORD InternetDial(
    HWND hwndParent,
    LPTSTR lpszConnectoid,
    DWORD dwFlags,
    LPDWORD lpdwConnection,
    DWORD dwReserved
);
http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/In
ternetDial.asp

DWORD InternetHangUp(
    DWORD dwConnection,
    DWORD dwReserved
);
http://msdn.microsoft.com/workshop/networking/wininet/reference/functions/In
ternetHangUp.asp

Other internet functions can be found at:
http://msdn.microsoft.com/workshop/networking/wininet/wininet.asp

Also, these functions do not support server implementations
which means they cannot be run from a service.

Hope this helps.

Cardyin

--------------------------------------
Cardyin Kim
C/S & Web Development Analyst
Information Services
San Antonio Community Hospital
ckim@s...     (xxx)xxx-xxxx     
--------------------------------------


-----Original Message-----
From: toddpie@m... [mailto:toddpie@m...]
Sent: Wednesday, May 23, 2001 12:24 PM
To: professional vb
Subject: [pro_vb] RE: Dialing/hanging up a dialup connection



I'm using a 3rd party FTP component,  IP-Works!,  that does not cause IE to
connect automatically.

Do I really have to open the internet explorer, have my username and
password
saved, and select the automatic option?  Seems like DIAL-UP should not have
to
depend on IE.  Is there any other way?  an api perhaps?

-Todd


  Return to Index