Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.17 KB

WritePrivateProfileSection.md

File metadata and controls

51 lines (36 loc) · 1.17 KB

Home

Function name : WritePrivateProfileSection

Group: Registry - Library: kernel32


Replaces the keys and values for the specified section in an initialization file.


Code examples:

Writing to INI file

Declaration:

BOOL WritePrivateProfileSection(
  LPCTSTR lpAppName,  // section name
  LPCTSTR lpString,   // data
  LPCTSTR lpFileName  // file name
);  

FoxPro declaration:

DECLARE WritePrivateProfileSection IN kernel32;
	STRING lpAppName,;
	STRING lpString,;
	STRING lpFileName  

Parameters:

lpAppName [in] Pointer to a null-terminated string specifying the name of the section in which data is written.

lpString [in] Pointer to a buffer containing the new key names and associated values that are to be written to the named section.

lpFileName [in] Pointer to a null-terminated string containing the name of the initialization file.


Return value:

If the function succeeds, the return value is nonzero.