Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
GDI+: loading image file, drawing on it, saving the result to another file
GDI+: Storing DLL icon resources in image files
How to view icons stored in executable files (Icon Viewer)
How to view icons stored in executable files (Icon Viewer) - II
Obtaining current Internet Explorer browser version and UserAgent
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Reading entries from Event logs
Setting default printer
Start an executable from VFP application by using the CreateProcess
Using named pipes for interprocess communication
Confining Windows calculator inside the VFP main window
Displaying standard progress dialog box when copying files
How to generate GUID values
Passing data records between VFP applications via the Clipboard
Retrieving the User Datagram Protocol (UDP) listener table
Using File Mapping for enumerating files opened by Visual FoxPro
Using the SystemParametersInfo function
Building a tree of subdirectories for a given path using FindFile functions
Enumerating Processes -- Win9*
How to enumerate logon sessions on local computer
Scanning the hierarchy of child windows down from the main VFP window
Using Common Controls: the Header Control
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:
      Password:
     
     
      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: 53  
    Listed functions:
    DeleteUrlCacheEntry
    FileTimeToSystemTime
    FindCloseUrlCache
    FindFirstUrlCacheEntry
    FindNextUrlCacheEntry
    GetLastError
    GlobalAlloc
    GlobalFree
    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  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (50.17.154.16)
    7 sec.Function: 'mixerGetDevCaps'
    Function group: 'Windows Multimedia'
    15 sec.Example: 'How to enumerate terminal servers within the specified Windows domain'
    1.05 min.
    Function group: 'Keyboard Input'
    1.5 min.Example: 'How to access a file using not its name but an alias (hard link)'
    18.37 hrs.Function: 'NetShareAdd'
     Example: 'Enumerating ODBC drivers available on the local computer'
     Function: 'NetWkstaGetInfo'
    Function group: 'Network Management'
     Article: 'Passing parameters to Win32 functions '
     Example: 'Running a regular FoxPro form while main VFP window is minimized'
     Function: 'SCardEstablishContext'
    Google
    Advertise here!