WritePrivateProfileString
WritePrivateProfileString is a Windows API function used to write data to INI-format configuration files. It is part of the Windows API and is implemented in Kernel32.dll. There are two variants: WritePrivateProfileStringA for ANSI and WritePrivateProfileStringW for Unicode.
The function writes the string specified by lpString to the key named by lpKeyName in the section
INI files used by this function are plain text files containing sections in brackets, and key-value pairs
Usage notes: WritePrivateProfileString is a legacy API commonly found in older Windows applications. Modern Windows development
See also GetPrivateProfileString, GetPrivateProfileSection, and related Get/WritePrivateProfileString APIs.