This function returns an integer value from 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. */
LONG lDefault; /* Default value. */
LONG lResult; /* Key value specified in the initialization file. */
lResult = PrfQueryProfileInt(hini, pszApp,
pszKey, lDefault);