HINI_PROFILE | Search both the USER and SYSTEM profiles. |
HINI_USERPROFILE | Search only the USER profile. |
HINI_SYSTEMPROFILE | Search only the SYSTEM profile. |
a variable | Search a program-defined profile. This is a HINI returned by PrfOpenProfile(). |
0 | The data associated with the application and keyword is not an integer. |
lDefault | The last parameter of PrfQueryProfileInt() is returned to you if the application or keyword could not be found in the profile. |
otherwise | The value associated with the application/keyword pair is returned. |
If lDefault, you may use WinGetLastError() to find out what went wrong. Possible errors PrfQueryProfileInt() may incur:
PMERR_INVALID_PARM | 0x1303 | One of the parameters to PrfQueryProfileData() was invalid. |
PMERR_NOT_IN_IDX | 0x1304 | The application name, keyword, or program handle was not found. |
PMERR_CAN_NOT_CALL_SPOOLER | 0x130D | An error related to the spooler occured. (?) |
Last modified June 13/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
PrfQueryProfileInt |