Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Reading data from INI files
Retrieving long values associated with the class of the VFP window
Using FlashWindowEx to flash the taskbar button of the VFP application
Using the heap of the calling process to allocate memory blocks
Using vendor-neutral SQL constructs
Connecting a local device to a network resource
Enumerating connections made to a shared resource for the local computer (WinNT only)
Obtaining MAC address through Address Resolution Protocol (ARP) request
Using an Event Object. Part A: running an application that creates an Event object
Winsock: changing the byte ordering
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Enumerating Windows Sound Schemes avaialble to the current user
Adding printer to the list of supported printers for the specified server
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
Displaying OS Memory Status
How to run FoxPro application under different user name (impersonating user)
Drawing standard Windows icons
How to download this reference`s archive through WinInet functions using InternetOpenUrl
Locking the workstation
Quering waveform-audio output devices
Tracking mouse movement to detect when to start dragging
Retrieving statistics for the TCP protocol running on the local computer
Retrieving the command line for the VFP session
Using an Event Object. Part B: running an application responding to events
Reading data from INI files

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:
INI files are regular text files, except the data inside the file is structured.

See also:
  • Writing to INI file
  • Reading entries from Event logs
  • Writing entries to custom Event Log
      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:
    • ~
    2770 bytes  
    Created: 2001-09-04 12:00:00  
    Modified: 2016-02-25 09:23:01  
    Visits in 7 days: 105  
    Listed functions:
    Printer friendly API declarations
    My comment:
    The target file should conform to the regular INI file format:

    Under some conditions this function applied to Win.Ini can read the corresponding Registry values instead the real file.

    Msdn: Calls to private profile functions may be mapped to the registry instead of to the specified initialization files.

    Apply this function to Win.Ini and check the results.
    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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    7 sec.Function: 'SQLGetConnectAttr'
    Function group: 'ODBC API'
    15 sec.Function: 'CeOpenDatabase'
    Function group: 'Remote Application Programming (RAPI)'
    21 sec.Function: 'InternetCloseHandle'
    30 sec.Solutions
    37 sec.Function: 'mmioSeek'
    Function group: 'Windows Multimedia'
    43 sec.Example: 'PocketPC: custom RAPI class for executing routines on remote Windows CE device'
    49 sec.Function: 'AVIStreamLength'
    Function group: 'Windows Multimedia'
    56 sec.Solution: 'ContextMenu ActiveX Control'
    1.03 min.Examples
    1.13 min.Function: 'CeRapiInitEx'
    Function group: 'Remote Application Programming (RAPI)'
    Advertise here!