PrfQueryProfileInt - Remarks

This function returns an integer value from the profile. The call searches the file for a key matching the name specified by the pszKey parameter, under the application heading specified by the pszApp parameter. When an integer is stored as a text string using the PrfWriteProfileString function, for example,

PrfWriteProfileString(HINI_PROFILE,
                      app, key,
                      _itoa(123,string,radix));
the returned value is the number, 123. When querying an INI file for values, the string in the INI file must be NULL terminated for consistent and correct results. The call returns lDefault if the application-name or key-name pair cannot be found.

Note: The search is case-dependent.