Not sure about the rest of your questions, but...

1) It should be possible to run your little program quietly (maybe show an
icon in the system tray, maybe not), which uses a timer to regularly check
the value of a function similar to the following (I used something similar a
while ago to time how long I was connected to the net for):

uses WinInet;

procedure ConnectionKind; 
var 
        flags: dword; 
begin 
        Result := InternetGetConnectedState(@flags, 0); 
        if Result then begin 
          if (flags and INTERNET_CONNECTION_MODEM) =
INTERNET_CONNECTION_MODEM then ...
          if (flags and INTERNET_CONNECTION_LAN) = INTERNET_CONNECTION_LAN
then ...
          if (flags and INTERNET_CONNECTION_PROXY) =
INTERNET_CONNECTION_PROXY then ...
          if (flags and
INTERNET_CONNECTION_MODEM_BUSY)=INTERNET_CONNECTION_MODEM_BUSY then ...
        end;
end; 

HTH,

Conor

-----Original Message-----
From: Tracey Maule [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 December 2002 9:30 a.m.
To: Multiple recipients of list delphi
Subject: Re: Re: [DUG]: boss's lates idea


Well, thanks for all your replies guys.. sorry i wasnt at work on friday to
answer all your comments earlier (i work gentlemens hours lol)

1.  I would not want the users to necessarily know this is happening... is
there a way this service (or startup program in 98) could be running and
detect when the modem connects to the internet, then quietly sends the info
to my web server.

[snip]
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to