Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving the elapsed time since the system was started
The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
How to display a Task Dialog (Vista)
Printf-style formatted text output in VFP
Retrieving country-specific dialing information from the Windows Telephony list of countries
Retrieving the name and type of all available RAS-capable devices
Using InternetGoOnline function
Extended OS Version info
GDI+: converting text strings to images and saving in a graphics file
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
Managing Cookies
Retrieving the names of all sections in an initialization file
How to display the port-configuration dialog box for a port on the specified server
Retrieving various system metrics
Using the IsWindowEnabled function
Winsock: how to retrieve the protocol information corresponding to a protocol name
Enumerating MIDI output devices
GDI+: printing vertical text on VFP reports via generated images (VFP9)
How to retrieve the number of objects stored in the Recycle Bin
Pocket PC: modifying keys in the System Registry
Obtaining provider name for a specific type of network
Retrieving System Error message strings
Using GetSysColor
Retrieving the elapsed time since the system was started

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
    DECLARE INTEGER GetTickCount IN kernel32.dll
    lnSeconds = GetTickCount() / 1000

    lnHours = INT (lnSeconds/3600)
    lnSeconds = lnSeconds - lnHours * 3600

    lnMinutes = INT (lnSeconds/60)
    lnSeconds = lnSeconds - lnMinutes * 60

    ? "Time since the restart: "
    ?? STRTRAN (STR(lnHours,2) + ":" + STR(lnMinutes,2) + ":";
        + STR(lnSeconds,2), " ","0")

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
361 bytes  
Created: 2001-07-25 12:00:00  
Modified: 2001-09-28 16:45:20  
Visits in 7 days: 89  
Listed functions:
Printer friendly API declarations
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
5 sec.Example: 'How to view system icons for the classes installed on the local machine'
10 sec.Example: 'Winsock: retrieving information about available transport protocols'
12 sec.Examples
17 sec.Banners
21 sec.Function: 'CeCloseHandle'
Function group: 'Remote Application Programming (RAPI)'
24 sec.Function: 'NetUserSetInfo'
Function group: 'Network Management'
28 sec.Function: 'waveOutGetDevCaps'
Function group: 'Windows Multimedia'
32 sec.Links
36 sec.Function: 'MQDeleteQueue'
Function group: 'Message and Message Queue'
40 sec.
Function group: 'Setup API functions'
Advertise here!