Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent..Internet connection..

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I have written one http client programme on windows-98,Now i want to know wether the client is connected to the server through LAN or DialUp setting. can any body suggest me, what are the SDK-98/95 API's ,i have to use or is there any way to identify this throuhgh windows registry or how i have to go ahead to solve this problem..

Hope for ur feedback
Deepak
 
I think that it's just an aproximation of how to do this ...

Code:
#include <wininet.h>

#define LAN   0x02
#define MODEM 0x01

int flags;

//If you are online it will return True, otherwise False
int Online = InternetGetConnectedState(&flags ,0);

if(flags & LAN)
  // u r connected via lan!!

if(flags & MODEM)
  // u r connected via modem!!

bluenote@clorinda.dnsq.org
(excuse my english)
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top