You need to use the InternetGetConnectedState API, here is a small example I have which I porbably downloaded a long time ago from someone somewhere, or made myself - Honestly, I cannot remember :
...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: HanneSThEGreaT Search: Search took 0.52 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |