Re: [GD-Windows] How to detect that an internet connection is alive ?
Brought to you by:
vexxed72
From: Ivan-Assen I. <iva...@gm...> - 2004-12-23 11:30:35
|
> 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; } |