Solved

Is connected

Posted on 2000-03-14
2
162 Views
Last Modified: 2013-11-20
hi  
   I have some question about connection.
Can my  program  known or detect   when  machine  that running  my program was connected  to internet ?

How I do that  ?

pls  suggest me

thank you
0
Comment
Question by:eakkung
2 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 75 total points
ID: 2615173
Hi eakkung,

since NT4 and Win95 there's an API command InternetGetConnectedState().
To use this you'll have to include 'wininet.h' and link with 'wininet.lib'.

See MSDN article ID: Q242558 for further infos on this...

hope that helps,

ZOPPO
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2615194
Use WINSOCK connect functions to give a try and from the return value you will know if computer connected to internet.

consult:
InternetGetConnectedState
Regards
W.Yinan
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
if loop in java 3 153
Hibernate methods 2 77
pre4 challenge 19 104
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question