Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Winsock: initializing the service in the VFP application
Converting command-line string to a set of Unicode argument strings
How to make the caption of a VFP application flashing in the Windows task bar
How to ping a remote site using ICMP API calls
How to view icons stored in executable files (Icon Viewer) - II
Printing Image File, programmatically set print page orientation to landscape
Winsock: how to retrieve the protocol information corresponding to a protocol name
Winsock: reading email messages (POP3, port 110)
Winsock: retrieving information about available transport protocols
Drawing a window caption using the DrawCaption routine
Retrieving names for the registered clipboard formats
Using FillMemory
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
How to delete all print jobs for a printer
How to download a file from the FTP server using FtpGetFile
Using the heap of the calling process to allocate memory blocks
Displaying the associated icons and descriptions for files and folders
Retrieving graphic capabilities of your display
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Testing an ODBC connection for supporting specific functionality
Validating URLs using moniker functions
How to create non-blocking Winsock server
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: 94  
    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 (54.204.200.90)
    3 sec.Function: 'GetTextExtentPoint32'
    5 sec.Function: 'NetApiBufferSize'
    Function group: 'Network Management'
    9 sec.Example: 'How to Start a Process as Another User (NT/XP/2K)'
    15 sec.Function: 'IsZoomed'
    18 sec.Example: 'The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles'
    22 sec.Function: 'NetUserGetGroups'
    Function group: 'Network Management'
    24 sec.Function: 'IpRenewAddress'
    Function group: 'IP Helper'
    26 sec.Example: 'How to retrieve adapter information for the local computer (including MAC address)'
    31 sec.Example: 'Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)'
    33 sec.Function: 'SearchPath'
    Function group: 'File Management'
    Google
    Advertise here!