|
发表于 2016-11-27 20:55:53
|
显示全部楼层
广东省东莞市
GetPrivateProfileSection function
Retrieves all the keys and values for the specified section of an initialization file.
Note This function is provided only for compatibility with 16-bit applications written for Windows. Applications should store initialization information in the registry.
Syntax
C++
DWORD WINAPI GetPrivateProfileSection(
_In_ LPCTSTR lpAppName,
_Out_ LPTSTR lpReturnedString,
_In_ DWORD nSize,
_In_ LPCTSTR lpFileName
);
Parameters
lpAppName [in]
The name of the section in the initialization file.
lpReturnedString [out]
A pointer to a buffer that receives the key name and value pairs associated with the named section. The buffer is filled with one or more null-terminated strings; the last string is followed by a second null character.
nSize [in]
The size of the buffer pointed to by the lpReturnedString parameter, in characters. The maximum profile section size is 32,767 characters.
lpFileName [in]
The name of the initialization file. If this parameter does not contain a full path to the file, the system searches for the file in the Windows directory. |
|