Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Reading list of folders and files on FTP server
Scanning the hierarchy of child windows down from the main VFP window
Simple Window Viewer
Using WM_COPYDATA for interprocess communication (VFP9)
How to display a user-defined icon in the MessageBox dialog
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Winsock: retrieving information from a host database for a given host name
Finding parameters for the region specified
Transparent Menu Class (requires VFP9)
Enumerating ports that are available for printing on a specified server
Enumerating Processes -- WinNT
Enumerating Windows Sound Schemes avaialble to the current user
GDI+: Creating thumbnails to preview images in a directory
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
GDI+: Storing content of the Clipboard to a bitmap file
OS version and revision
Establishing connection using the SQLDriverConnect
Exporting DLL icon resources as .ICO files
Pocket PC: custom RAPI class for operating with the System Registry
Setting properties of the window: caption and user-defined value
Accessing Adobe Reader 7.0 main menu from VFP application
Adding and deleting User Accounts
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory

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:
The following example presents session class CacheEntry and collection class CacheEntries. The latter, when created, enumerates Internet cache entries for a given search pattern.

Depending on the search pattern the enumerated can be
  • cookies
  • visited web pages
  • cached Internet files

    If you choose complete enumeration (empty search pattern or *.* ), it may take long time, like 5..10 minutes, if there are many cached files on the computer.

    Whichever cache entries have been enumerated, they can be deleted through DeleteCacheEntry and DeleteCacheEntries methods of the collection class.

    Note that this is all about Internet Explorer and WinINet. Other browsers most likely use different caching support.
      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:
    • ~
    6324 bytes  
    Created: 2004-10-15 18:04:52  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 104  
    Listed functions:
    Printer friendly API declarations
    My comment:
    For FoxPro versions 3..7 you must tinker the code a little bit.

    Visiting a single web page may create tens if not a hundred cached files on your computer. Just for fun: clear cookies, history and temporary internet files and start visiting different web pages. If this is your first experience, most likely you will be amazed.

    I have all third-party cookies blocked in my IE settings.
    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:
    There are no notes on this subject.

    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.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    9 sec.Function: 'CreateWindow'
    Function group: 'Window'
    18 sec.Function: 'JetDetachDatabase'
    Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
    26 sec.Function: 'GetForegroundWindow'
    Function group: 'Window'
    34 sec.Example: 'Using InternetSetFilePointer when resuming interrupted download from the Internet'
    41 sec.Example: 'Opening access to the Microsoft Internet functions for the application'
    51 sec.Function: 'GetTextFace'
    1 min.Function: 'JetEndSession'
    1.12 min.Article: 'Passing parameters to Win32 functions '
    1.23 min.Function: 'GetTickCount'
    1.37 min.Example: 'Using FrameRgn for displaying system colors'
    Advertise here!