我这儿倒是有个控件,是做这个的,
怪好用的,还有demo的,你要的话给我说一下(mail),
TMAGRAS - DELPHI RAS COMPONENT - RELEASE 4.60
=============================================
Overview
--------
TMagRas Release 4 is a set of installable Delphi non-visual components,
supplied with several demo and example programs and a help file, for
accessing Dial Up Networking or Remote Access Services functions. It
allows Delphi developers to add full RAS functionality to their
applications, including dialling and monitoring multiple connections,
creating and editing phonebooks (without using Windows dialogs), and
getting performance information for connections. TMagRas supports Windows
95, 98, ME, NT4, 2000 and XP, allowing an application to support all the
various RAS extensions in NT and W2K, including sub entries for multi-
channel ISDN connections. Performance statistics are returned separately
for each connection in NT4 and each channel in W2K. Incoming calls to
NT4 RAS Server may be monitored.
TMagRas is supplied as five separate installable Delphi components:
TMagRasCon includes dialling and monitoring and limited connection
editing, TMagRasPer has performance statistics, TMagRasEdt to create and
edit connections/phonebooks, TMagTapi lists TAPI devices and monitors
them (but does not make calls), and TMagRasAdm which supports the admin
interface to RAS Server for incoming connections.
These are supported by MagRasApi that includes the prototypes for all
RAS functions and loads them dynamically (in case RAS is not installed),
TMagTapiApi that includes prototypes for TAPI functions and loads them
dynamically, WinPerf has NT performance data structures, MagRasPdhApi
NT performance data helper, MagRasEnt to support phonebook entry lists,
MagRasStr with RAS string literals, MagTapiStr with TAPI string literals,
and MagSubs1 with common non-RAS functions.
A demo program illustrates use of the components, including monitoring
multiple connections, creating a simple new connection with minimal
properties, and editing detailed connection properties (seven tabs of
settings) including Windows 2000 extensions. Seven example programs
illustrate various aspects of the components and may be copied to
quickly add specific RAS functionality to applications.