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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A way to detect DUN or ISP connection in VFP

Status
Not open for further replies.

CTMHSH

Programmer
Jun 13, 2002
6
US
Hello

In a stand alone program I am writing I need to make sure a phone connection or an active ISP is running before I can continue with a part of my program.

Is there a command line or SYS() in VFP 6.0 for me to check these for an activity?

Thank you
Craig
 
FUNCTION IsInternetUp()
** Check to see if Internet Connection is available ***
** Thanks to Dsumzzz from Tek-Tips

DECLARE INTEGER InternetCheckConnection in wininet;
STRING lpszUrl,;
INTEGER dwFlags,;
INTEGER dwReserved

IF InternetCheckConnection(" 1, 0) = 1
RETURN .t.
ELSE
RETURN .f.
ENDIF
ENDFUNC Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top