Using Win32 functions in Visual FoxPro Image Gallery
Registry
..msdn
GetPrivateProfileSectionNames
GetPrivateProfileString
GetProfileString
RegCloseKey
RegCreateKeyEx
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKeyEx
RegEnumValue
RegOpenKeyEx
RegQueryInfoKey
RegQueryValueEx
RegSaveKey
RegSetValueEx
SHEnumKeyEx
SHRegCloseUSKey
SHRegEnumUSKey
SHRegOpenUSKey
WritePrivateProfileSection
WritePrivateProfileString
Code examples:
Writing to INI file
WritePrivateProfileString
..msdn    Add comment     W32 Constants      Translate this page
The WritePrivateProfileString function copies a string into the specified section of an initialization file.
Code examples:
Writing to INI file
Declaration:
BOOL WritePrivateProfileString(
  LPCTSTR lpAppName,  // section name
  LPCTSTR lpKeyName,  // key name
  LPCTSTR lpString,   // string to add
  LPCTSTR lpFileName  // initialization file
);
FoxPro declaration:
DECLARE WritePrivateProfileString IN kernel32;
    STRING lpAppName,;
    STRING lpKeyName,;
    STRING lpString,;
    STRING lpFileName
Parameters:
lpAppName
[in] Pointer to a null-terminated string containing the name of the section to which the string will be copied.

lpKeyName
[in] Pointer to the null-terminated string containing the name of the key to be associated with a string.

lpString
[in] Pointer to a null-terminated string to be written to the file.

lpFileName
[in] Pointer to a null-terminated string that specifies the name of the initialization file.
Return value:
If the function successfully copies the string to the initialization file, the return value is nonzero.
Word Index links for the WritePrivateProfileString :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-09-04 12:00:00
Modified: 2001-11-26 16:03:35
Visited in last 7 days: 18
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.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.223.197)
1.78 min.Function: 'ResetEvent'
3.37 min.Function: 'waveOutGetVolume'
3.48 min.Function: 'WSACloseEvent'
Google
Advertise here!