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() |
NULL | Specifying NULL for this parameter will return, in pBuffer, a list of all application names in the specified profile. Each name will be null-terminated, and the final name will have two null characters appended to it. If NULL is specified, then pulBufSize will not count the final null character in the return value, and pszKeyWord is ignored. |
a variable | This is a specific case-dependent application name to search for |
NULL | Specifying NULL for this parameter will return, in pBuffer, a list of all keywords associated with the specified profile. Each name will be null-terminated, and the final name will have two null characters appended to it. If NULL is specified, then pulBufSize will not count the final null character in the return value |
a variable | This is a specific case-dependent application name to search for |
TRUE | success |
FALSE | Error occurred |
If FALSE, you may use WinGetLastError() to find out what went wrong. Possible errors PrfQueryProfileData() may incur:
PMERR_INVALID_PARM | 0x1303 | One of the parameters to PrfQueryProfileData() was invalid |
PMERR_NOT_IN_IDX | 0x1304 | The application name, keyword, program handle was not found |
PMERR_CAN_NOT_CALL_SPOOLER | 0x130D | An error related to the spooler occured. (?) |
Last modified April 29/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
PrfQueryProfileData |