The are two functions in the WinInet.pas file that may be of use.

InternetGetConnectedState and
InternetCheckConnection

Otherwise, you could create an application which you use to connect to the
Internet using the InternetAutoDial and InternetAutoDialHangup Functions,
which in a nutshell uses your default Internet Connection to establish a
connection and then hangs up this connection when required.

Using the above approach it would be fairly easy to save the date time of
connection to a DB. Just have a connect and disconnect button, which saves
the DateTime to the DB in the OnButtonClick Event Handlers.

-----Original Message-----
From: gajo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 30 August 2000 12:52
To: Multiple recipients of list delphi
Subject: [DUG]: Connection and disconnection


I would like to write a program that will save the date and time every time
I connect to or
disconnect from the internet (by dial-up networking). How can I do this?

Gajo

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"



CAUTION - This message may contain privileged and confidential information intended 
only for the 
use of the addressee(s) named above.  If you are not the intended recipient of this 
message you are 
hereby notified that any use, dissemination, distribution or reproduction of this 
message is prohibited.  
If you have received this message in error please notify Progressive Enterprises Ltd. 
immediately via 
email at [EMAIL PROTECTED]  Any views expressed in this message 
are those of the 
individual sender and may not necessarily reflect the views of Progressive Enterprises 
Ltd.

This footnote also confirms that Progressive Enterprises Ltd. has swept this email 
message for the 
presence of computer viruses.  This does not guarantee this message is virus free.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to