This function writes a string of binary 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. */
PVOID pData; /* Value data. */
ULONG ulDataLen; /* Size of value data. */
BOOL rc; /* Success indicator. */
rc = PrfWriteProfileData(hini, pszApp, pszKey,
pData, ulDataLen);