Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Drawing icons associated with the VFP main window
Enumerating global and local group accounts on a server (WinNT/XP/2K)
GDI+: creating scaled copy of image file
GetProcessVersion points at target OS
How to obtain Content-Type value for a file type from the System Registry
Quering waveform-audio output devices
Accessing examples contained in this reference through Web Services
Clipping mouse cursor area
Get the power status of your laptop computer
How to create non-blocking Winsock server
Retrieving long values associated with the class of the VFP window
Starting a dialog box for connecting to network resources and passing input parameters
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Enumerating printer drivers installed
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
How to display the Properties dialog box for a file (ShellExecuteEx)
How to find when the application started
How to run FoxPro application under different user name (impersonating user)
How to Start a Process as Another User (NT/XP/2K)
Monitoring changes in a directory
Obtaining list of tables stored in an ODBC Data Source
Verifying a file using the Authenticode policy provider
Creating a device context for the specified printer
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
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: 76  
    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-2015 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.5.44), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    35 sec.Function: 'CeRapiInit'
    Function group: 'Remote Application Programming (RAPI)'
    2.88 min.
    Function group: 'Error Handling'
    4 day(s)Function: 'ReadProcessMemory'
     Example: 'Using Extended MessageBox() Class'
     Function: 'WSACloseEvent'
    Function group: 'Windows Sockets 2 (Winsock)'
     Function: 'inet_ntoa'
    Function group: 'Windows Sockets 2 (Winsock)'
     Function: 'GlobalAlloc'
    Function group: 'Memory Management'
     Function: 'bind'
    Function group: 'Windows Sockets 2 (Winsock)'
    Advertise here!