This function writes a string of character data into the specified profile.
#define INCL_WINSHELLDATA /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HINI hini; /* Initialization-file handle. */ PSZ pszApp; /* Application name. */ PSZ pszKey; /* Key name. */ PSZ pszData; /* Text string. */ BOOL rc; /* Success indicator. */ rc = PrfWriteProfileString(hini, pszApp, pszKey, pszData);