Re: Is there any API to check if a machine is network connection?
From: Kevin (kevinlouisnospam_at_hotmail.com)
Date: 06/15/04
- Previous message: Igor Tandetnik: "Re: Appending the default URL with some parameters."
- In reply to: Igor Tandetnik: "Re: Is there any API to check if a machine is network connection?"
- Next in thread: Ben Rush: "Re: Is there any API to check if a machine is network connection?"
- Reply: Ben Rush: "Re: Is there any API to check if a machine is network connection?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 16:14:45 -0700
Thanks. I find one more:
InternetQueryOption with the INTERNET_OPTION_CONNECTED_STATE.
e.g.
InternetQueryOption(NULL,
INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize)
&& (dwState & INTERNET_STATE_CONNECTED);
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:eYkgAnuUEHA.2972@TK2MSFTNGP12.phx.gbl...
> "Kevin" <kevinlouisnospam@hotmail.com> wrote in message
> news:eI2y4dnUEHA.3944@TK2MSFTNGP12.phx.gbl
> > I want to load a cached web page if a machine has no network
> > connection. Could you tell me how I can check if the machine is
> > connected? I may use ping, but I am not sure how it is coded.
>
> InternetGetConnectedState, InternetCheckConnection, IsNetworkAlive
> --
> With best wishes,
> Igor Tandetnik
>
> "For every complex problem, there is a solution that is simple, neat,
> and wrong." H.L. Mencken
>
>
- Previous message: Igor Tandetnik: "Re: Appending the default URL with some parameters."
- In reply to: Igor Tandetnik: "Re: Is there any API to check if a machine is network connection?"
- Next in thread: Ben Rush: "Re: Is there any API to check if a machine is network connection?"
- Reply: Ben Rush: "Re: Is there any API to check if a machine is network connection?"
- Messages sorted by: [ date ] [ thread ]