This function retrieves a string from the specified profile. This function is designed to search data written with PrfWriteProfileString
#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 pszDefault; /* Default string. */ PVOID pBuffer; /* Profile string. */ ULONG ulBufferMax; /* Maximum string length. */ ULONG ulLength; /* String length returned. */ ulLength = PrfQueryProfileString(hini, pszApp, pszKey, pszDefault, pBuffer, ulBufferMax);