Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Accessing examples contained in this reference from a VFP application
How to play MIDI notes
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Minimizing all running applications
Retrieving the name of the primary domain controller (PDC) and join status information
Retrieving the rectangle area where the mouse cursor is confined
Using FlashWindowEx to flash the taskbar button of the VFP application
Using the ChooseColor function
Validating the heap of the calling process
Displaying OS Memory Status
GetFileOwner - Get the owner of an NTFS file
Memory usage info for current VFP session (WinNT only)
Quering a waveform-audio input device
Retrieving list of files on the FTP directory
Enumerating the subkeys of a user-specific key
Locking the workstation
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Reading parameters of streams in AVI file
Retrieving graphic capabilities of your display
Simple Window Viewer
Using the DrawText function
Converting long file names to the short format and vice versa
Pocket PC: custom RAPI class for operating with the Object Store Databases
Retrieving information about the specified icon
How to download this reference`s archive through WinInet functions using InternetOpenUrl

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:
Check similar example based on URL Monikers functions.

  Members area. Log in to view this example.
  User name:
  Forgot your password?
  Sign up for
the Membership

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
2523 bytes  
Created: 2001-08-17 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 86  
Listed functions:
Printer friendly API declarations
My comment:
This particular example let you download VFP tables containing the recent data of this reference:
- list of functions
- list of examples
- function groups
- list of libraries

After that you can work with this data locally.

Through Hypertext Transfer Protocol -- also known as HTTP -- this program opens a remote Zip archive and transfers it into a local file on your computer.

Though the primary task of this code is to demonstrate InternetOpenUrl function.

And of course, you can download it directly here.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
User Contributed Notes:
WCoupe | 2006-07-14 11:37:34
This was *exactly* what I'd been looking for! And.. specifically the reason I signed up!!

Also, if you're interested, I've modified the source a bit to show how you can achieve this, in a password protected site by passing the USER/PW in the 'Open' call and getting the appropriate handle.
A.M. | 2006-07-14 11:53:26
Hi Bill, you're always welcome. Please email me a part of code with your modifications, and I put it under Comment section on this page -- devicecontext_at_msn_dot_com

Try also URLDownloadToCacheFile/URLDownloadToFile functions and related examples.

Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
6 sec.
Function group: 'Network Management'
12 sec.Function: 'WinHttpOpen'
18 sec.Function: 'JetCloseDatabase'
24 sec.Function: 'WSACloseEvent'
Function group: 'Windows Sockets 2 (Winsock)'
30 sec.Example: 'GDI+: Using Scale and Shear transformations'
37 sec.Function: 'HeapReAlloc'
Function group: 'Memory Management'
44 sec.Function: 'send'
Function group: 'Windows Sockets 2 (Winsock)'
49 sec.Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
59 sec.Function: 'NetScheduleJobEnum'
Function group: 'Network Management'
1.17 min.Function: 'LockWorkStation'
Advertise here!