Solved

Is connected

Posted on 2000-03-14
2
158 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 30

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now