Peter,
> > The only gotcha with this method is it tells you whether there has
> > been an internet connection
>
> Hmmm. ...since....? Reboot? Last call? Breakfast? <g>
I'll say breakfast - from experience the function always works as expected
after I've had breakfast. Then again, I only switch on the computer after
breakfast ... or is it lunch?
If you use Outlook on a dial up connection to retrieve email, you will
notice this funny behaviour (feature in M$ speak) after you drop the dial up
connection.
> I ask only because I can't find any docs for it in
> win32.hlp/socks2.hlp et al -- I assume it must be described
> somewhere in a MSDN CD or something?
It is (poorly) documented at msdn.microsoft.com. BTW, all Internet*
functions are exported by wininet.dll, so it is unlikely that you will find
anything in win32 / winsock32 .hlp files. Wininet.dll comes with IE4 / IE5.
Regards,
Dennis.
> -----Original Message-----
> Dennis wrote:
>
> > if InternetGetConnectedState (
> > INTENET_CONNECTION_MODEM or
> > INTENET_CONNECTION_LAN or
> > INTERNET_CONNECTION_PROXY) then
> > // do whatever you need to do to connect to the server...
> > end;
>
> Thanks for that, sounds like what Bram was after.
>
> > The only gotcha with this method is it tells you whether there has
> > been an internet connection
>
> Hmmm. ...since....? Reboot? Last call? Breakfast? <g>
>
> I ask only because I can't find any docs for it in
> win32.hlp/socks2.hlp et al -- I assume it must be described
> somewhere in a MSDN CD or something?
>
> Thanks!
>
> cheers,
> peter
>
> ============================================
> Peter Hyde, WebCentre Ltd & SPIS Ltd, Christchurch, New Zealand
> * Web automation for online periodicals: http://TurboPress.com
> * TurboNote+: http://TurboPress.com/tbnote.htm
> -- handy onscreen notes and instant messaging
> ------------------------------------------------------------------
> ---------
> 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"
---------------------------------------------------------------------------
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"