There is a callback function RasDialFunc that you can use. However I suspect
Windows will put its own in in order to be able to return the connection
status of connections it is making.
You can also use polling with the following component (which also comes with
the Delphi headers for all the functions in the RAS API that you can also
use.)
http://www.geocities.com/SiliconValley/Sector/9792/delphi/tools.htm
Drop a component on your form. In the OnActiveConnection event handler, put
the code you want to be executed. This gets called once for each active
connection. Then call the component's GetConnections method.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeremy Coulter
> Sent: Wednesday, 23 June 1999 22:12
> To: Multiple recipients of list delphi
> Subject: [DUG]: Detecting a RAS connection
>
>
> Hi all.
> I was wondering how I would go about detecting when a RAS connection is
> made.
> I want to have a wee app do some stuff when a RAS connection is
> detected....much th same way as when ICQ detects that you have called the
> net, and it automatically connects you to the ICQ network.
>
> Anyone know hwo I go about detecting the ras connection ??
>
>
> Thanks,
>
> Jeremy Coulter
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz