Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Adding a background image to VFP report (VFP9, ReportListener)
Converting image file to .ICO file
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Opening the Page Setup dialog box to specify the attributes of a printed page
Using the DrawText function
A client for testing non-blocking Winsock server
Finding parameters for the region specified
Retrieving the IP-to-physical address mapping table
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Drawing Windows frame controls using the DrawFrameControl function
Accessing examples contained in this reference from a VFP application
Adding supplementary data to AVI files
Enumerating connections made to a shared resource for the local computer (WinNT only)
How to download this reference`s archive through WinInet functions using InternetOpenUrl
Obtaining current Internet Explorer browser version and UserAgent
Adding printer to the list of supported printers for the specified server
Converting a hexadecimal string to an integer
Drawing icons associated with the VFP main window
How to save registry key including its subkeys and values to a file
Retrieving Printer Device Context using PrintDlg function
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Using the GetTempFileName
Wininet last error description
Monitoring changes occurring within a 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
click to open
Before you begin:
To stop the following code after it has been started, open and save any file in C:\TEMP directory.

See also:
  • FileSystemWatcher ActiveX Control for Visual FoxPro
  • Monitoring changes in a directory
  • Enumerating files opened on the network
      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:
    • ~
    1841 bytes  
    Created: 2003-05-09 09:16:21  
    Modified: 2011-02-16 13:28:54  
    Visits in 7 days: 176  
    Listed functions:
    Printer friendly API declarations
    My comment:
    To stop the following code after it has been started, open and save any file in C:\TEMP directory.

    * * *
    The C++ sample displays file and directory changes for drive C in a console window. Close the window when you no longer need it.

    This code itself makes an interesting tool. Download C++ project, compile and start the executable. Then open VFP or IE window, or even move the mouse above the Windows taskbar -- you will see how many files and directory modifications may hide behind such a simple action.

    * * *
    Deleting a directory with subdirectories into the Recycle Bin produces a single FILE_NOTIFY_INFORMATION structure with the directory data. While a direct delete (the Recycle Bin is bypassed) triggers ReadDirectoryChangesW for each subdirectory, and finally for the directory.

    * * *
    When designing a file monitoring utility (FLL or ActiveX control), it should be considered that VFP creates single threaded applications.

    While busy with processing directory changes, an application is unable to receive other changes coming. Frequent changes and substantial processing time make such miss unavoidable.

    Thus a VFP application must receive not the actual directory changes, but rather be notified when they occur. Notifications may come through window messages or by events raised.

    A monitoring utility must take care of piling changes in its own memory, and dispatching them to a client application upon request.
    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.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 sec.Function: 'DrawIcon'
    21.98 hrs.Function: 'inet_ntoa'
    Function group: 'Windows Sockets 2 (Winsock)'
     Example: 'Pocket PC: base class'
    21.99 hrs.Example: 'How to create MD-5 and SHA-1 hash values from a string'
    22.01 hrs.Function: 'waveOutOpen'
    Function group: 'Windows Multimedia'
    2 day(s)Function: 'NetUserGetLocalGroups'
    Function group: 'Network Management'
     Function: 'PlaySound'
    Function group: 'Windows Multimedia'
     Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
     Function: 'CryptEnumProviderTypes'
    Function group: 'Cryptography Reference'
    7 day(s)Function: 'inet_addr'
    Function group: 'Windows Sockets 2 (Winsock)'
    Advertise here!