Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Reading data from INI files
Using GetNearestColor
Using mailslots to send messages on the network
Using the ChooseColor function
Using the DrawText function
Using vendor-neutral SQL constructs
Extracting the name and extension parts of a path string
GDI+: retrieving list of available image encoders and image decoders
How to hide your program from the Close Program dialog (Win9* only)
How to hot-track menu item selection in top-level form (requires VFP9)
How to write and read Window Properties for the specified window
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Obtaining the bounding rectangle for the specified device context
Retrieving the priority class for the current process
Scanning a hierarchy of child windows down from the Windows Desktop
Dial the Net Automatically
DiskFreeSpace class
FindText -- the hopeless and useless Common Dialog
Obtaining the System and Windows folder names
Retrieving the rectangle area where the mouse cursor is confined
System and Local Time values
Accessing LSA Policy object (Local Security Authority)
Creating two-byte hashes for a list of URLs
Displaying the main Dial-Up Networking dialog box
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
Versions:
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:
      Password:
     
     
      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: 59  
    Listed functions:
    GetPrivateProfileString
    GetWindowsDirectory
    Printer friendly API declarations
    My comment:
    The target file should conform to the regular INI file format:
    [section]
    key=string
    ...


    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  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.227.17.101)
    25 sec.Function: 'SQLFreeHandle'
    46 sec.Example: 'GDI+: cropping images'
    1.12 min.
    Function group: 'GDI+ Font'
    1.5 min.Function: 'MAPIFindNext'
    Function group: 'Simple MAPI'
    1.83 min.Function: 'WSARecv'
    Function group: 'Windows Sockets 2 (Winsock)'
    2.2 min.Function: 'LoadUserProfile'
    Function group: 'Shell Functions'
    2.92 min.Function: 'SQLGetPrivateProfileString'
    Function group: 'ODBC API'
    3.27 min.Function: 'GetThreadLocale'
    3.65 min.Function: 'PathYetAnotherMakeUniqueName'
    Function group: 'Shell Functions'
    3.95 min.Example: 'Monitoring clipboard content changes (VFP9)'
    Google
    Advertise here!