 |
GetPrivateProfileString ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves a string from the specified section in an initialization file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-09-04 12:00:00 | | Modified: | 2001-11-26 16:03:34 | Visited in last 7 days: 21 |