Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Using the high-resolution performance counter
Who owns the Windows Clipboard
Winsock: retrieving the host information corresponding to a network address
Displaying the color palette stored in an image file
Retrieving default spooling directory name
Accessing a CD device (cdaudio) with Multimedia Command Strings
Enumerating forms supported by a specified printer
Enumerating Performance Counters
Using Custom FTP class (DEFINE CLASS ftp As Custom)
How to delete a service object
Listing device drivers in the system: load addresses, names
Setting the last-error code for the FoxPro
Using Video Capture: enumerating installed capture drivers
Who is the first in viewing the Clipboard
Retrieving current user for the process
Hiding mouse cursor
Determining if an Active Network Connection is Available
How to intercept window messages sent to VFP form
List of addresses in the AutoDial mapping database
Obtaining the System and Windows folder names
Using GetCompressedFileSize (WinNT only)
Determining whether or not the system is connected to the Internet
Joining local computer to a domain (XP/2000)
Determining whether or not the system is connected to the Internet

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
See also:
  • How to ping a remote site using IP Helper API calls
  • How to ping a remote site using ICMP API calls
  • InternetAttemptConnect function

  •  
    DECLARE INTEGER InetIsOffline IN url INTEGER dwFlags
     
    IF InetIsOffline(0) = 0
        ? "The local system is connected to the Internet."
    ELSE
        ? "The local system is not currently connected to the Internet."
    ENDIF
     
     
     

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    216 bytes  
    Created: 2002-07-27 21:57:42  
    Modified: 2006-01-09 09:16:30  
    Visits in 7 days: 23  
    Listed functions:
    InetIsOffline
    Printer friendly API declarations
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    Nasib Kalsi | 2006-01-08 23:14:55
    This function allways return true, even when you disconnect the Cable. Why, anybody can help ? Is there any other substitue for this function ?
    A.M. | 2006-01-09 09:10:59
    Ping a well-known site or two to find whether you are connected to the Internet. There are several Ping examples in this reference. Search "how to ping".

    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (107.20.7.65)
    1.04 hrs.Function: 'RtlGetCompressionWorkSpaceSize'
    3.01 hrs.Function: 'HeapWalk'
    Function group: 'Memory Management'
     Function: 'GetClassLong'
    3.33 hrs.Example: 'WAV file recorder'
     Example: 'Comparing dimensions of the VFP main window with _SCREEN properties'
     Example: 'Retrieving configuration information for the specified server (Win2000/XP)'
    3.44 hrs.Function: 'GlobalFree'
     Function: 'MessageBeep'
    Function group: 'Error Handling'
    3.88 hrs.Example: 'Retrieving Window Class information for the VFP window'
     Function: 'SetKeyboardState'
    Google
    Advertise here!