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 pulDataSize, the number of bytes need to store an enumerated list of all the application names in this profile. pszKeyWord will be ignored. See PrfWriteProfileString() for more information on retrieving this list. |
a variable | This is a specific case-sensitive application name to search for. |
NULL | Specifying NULL for this parameter will return, in pulDataSize, the number of bytes need to store an enumerated list of all the keywords in this profile. If NULL is specified for pszAppName, this parameter is ignored. See PrfWriteProfileString() for more information on retrieving this list. |
a variable | This is a specific case-sensitive keyword to search for. |
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 June 13/1996
Please send all errors, comments, and suggestions to:
timur@vnet.ibm.com
The OS/2 API Project |
PrfQueryProfileSize |