This function obtains the size in bytes of the value of a specified key for a specified application in the 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. */ PULONG pulDataLen; /* Data length. */ BOOL rc; /* Success indicator. */ rc = PrfQueryProfileSize(hini, pszApp, pszKey, pulDataLen);