Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
A procedure for setting file times
Adding printer to the list of supported printers for the specified server
How to remove a directory that is not empty
Locking mouse and keyboard input for the VFP application
Number of clipboard formats available
Winsock: retrieving Web pages using sockets (HTTP, port 80)
How to ping a remote site using IP Helper API calls
Reading and setting Environment variables
System and Local Time values
Testing if a connection to an Url can be established
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Using the ChooseColor function
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Obtaining Shell32.dll version
Storing content of the Clipboard to a bitmap file
GDI+: sending image of FoxPro form to printer
Getting a bit more than the _CLIPTEXT offers
High-powered ALLTRIM
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Changing pitch and speed of a wave file
Class library providing access to the System Registry
Exporting DLL icon resources as .ICO files
How to assemble an array of strings and pass it to external function
Retrieving Window Class information for the VFP window
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: 2011-01-09 10:07:15  
    Visits in 7 days: 58  
    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-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (72.44.48.122)
    1.4 hrs.Function: 'SendMessage'
     Function: 'ShellExecuteEx'
    16.59 hrs.Function: 'Process32Next'
    Function group: 'Performance Monitoring'
     Example: 'How to create a desktop shortcut (shell link)'
    17.43 hrs.Function: 'NetApiBufferFree'
     Example: 'Retrieving the rectangle area where the mouse cursor is confined'
    17.44 hrs.Function: 'IsMenu'
    Function group: 'Menu'
    21.39 hrs.Function: 'waveOutSetVolume'
     Function: 'EnumClipboardFormats'
    22.66 hrs.Example: 'Enumerating Processes -- WinNT'
    Google
    Advertise here!