Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. IsConnected to internet

IsConnected to internet

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmin
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1017986
    wrote on last edited by
    #1

    wot is the best way to check whether internet is connected. Other than pinging or downloading file from a known server.

    J A V 3 Replies Last reply
    0
    • U User 1017986

      wot is the best way to check whether internet is connected. Other than pinging or downloading file from a known server.

      J Offline
      J Offline
      Jitendra gangwar
      wrote on last edited by
      #2

      take a try... InternetCheckConnection(...) jitendra

      1 Reply Last reply
      0
      • U User 1017986

        wot is the best way to check whether internet is connected. Other than pinging or downloading file from a known server.

        A Offline
        A Offline
        Antti Keskinen
        wrote on last edited by
        #3

        A function for this is InternetAttemptConnect. This function will check if an Internet connection is available. It returns ERROR_SUCCESS if the connection was available, and if not, it'll return one of the system wide error codes. Only one parameter, zero, is issued to the function, so it's pretty straightforward to call it. Include 'Wininet.h' and link with 'wininet.lib' to use this function. It is part of the Platform SDK. For other Internet-connectivity functions, see MSDN link here. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

        1 Reply Last reply
        0
        • U User 1017986

          wot is the best way to check whether internet is connected. Other than pinging or downloading file from a known server.

          V Offline
          V Offline
          vcplusplus
          wrote on last edited by
          #4

          InternetGetConnectedState(...)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups