Re: How to detect that an internet connection is alive ?
Ivan-Assen Ivanov <[email protected]> Thu, 23 Dec 2004 13:30:29 +0200
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
> Btw the solution need not to not connect
> to the internet and not open the dialup
> dialogbox ... It must stay completely passive,
> just a "simple" Yes/No answer ...
This is what I found in our codebase:
BOOL IsThereAnInternetConnection()
{
//may not work if you are on a LAN but you're connected through a modem
DWORD dwFlags;
BOOL bResult = InternetGetConnectedState(&dwFlags, 0);
return !!bResult;
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555