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:
Reading data from INI files
GetPrivateProfileString
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a string from the specified section in an initialization file.
Code examples:
Reading data from INI files
Declaration:
DWORD GetPrivateProfileString(
  LPCTSTR lpAppName,        // section name
  LPCTSTR lpKeyName,        // key name
  LPCTSTR lpDefault,        // default string
  LPTSTR lpReturnedString,  // destination buffer
  DWORD nSize,              // size of destination buffer
  LPCTSTR lpFileName        // initialization file name
);
FoxPro declaration:
DECLARE INTEGER GetPrivateProfileString IN kernel32;
    STRING   lpAppName,;
    STRING   lpKeyName,;
    STRING   lpDefault,;
    STRING @ lpReturnedString,;
    INTEGER  nSize,;
    STRING   lpFileName
Parameters:
lpAppName
[in] Pointer to a null-terminated string that specifies the name of the section containing the key name.

lpKeyName
[in] Pointer to the null-terminated string specifying the name of the key whose associated string is to be retrieved.

lpDefault
[in] Pointer to a null-terminated default string.

lpReturnedString
[out] Pointer to the buffer that receives the retrieved string.

nSize
[in] Specifies the size, in TCHARs, of the buffer pointed to by the lpReturnedString parameter.

lpFileName
[in] Pointer to a null-terminated string that specifies the name of the initialization file.
Return value:
The return value is the number of characters copied to the buffer, not including the terminating null character.
Word Index links for the GetPrivateProfileString :
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:34
Visited in last 7 days: 13
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.137.168)
3 sec.
Function group: 'GDI+ PathGradient Brush'
5 sec.
Function group: 'Internet Functions (WinInet)'
10 sec.Function: 'FindMediaType'
14 sec.Function: 'PathFileExists'
17 sec.Function: 'CopyFileTransacted'
19 sec.
Function group: 'File Management'
23 sec.Function: 'WinHttpSendRequest'
26 sec.Function: 'GetRawInputDeviceInfo'
30 sec.Function: 'NetUnjoinDomain'
34 sec.Function: 'CreateToolhelp32Snapshot'
Google
Advertise here!