Purpose
Opens the list. A request is sent to the iSeries™ system
to build the list.
Syntax
unsigned int CWB_ENTRY CWBSO_OpenList(
CWBSO_LIST_HANDLE listHandle,
CWBSO_ERR_HANDLE errorHandle);
Parameters
- CWBSO_LIST_HANDLE listHandle - input
- A handle to a list that was returned by a previous call to CWBSO_CreateListHandle or
CWBSO_CreateListHandleEx.
- CWBSO_ERR_HANDLE errorHandle - input
- A handle to an error that was returned by a previous call to CWBSO_CreateErrorHandle.
When the value that is returned by this API is CWBSO_ERROR_OCCURRED, the error
handle may be used to retrieve the error message text or display the error
to the user.
Return Codes
The following list shows common return
values.
- CWBSO_NO_ERROR
- No error occurred.
- CWBSO_BAD_LIST_HANDLE
- The list handle that is specified is not valid.
- CWBSO_BAD_ERR_HANDLE
- The error handle that is specified is not valid.
- CWBSO_LOW_MEMORY
- Not enough memory is available for the request.
- CWBSO_ERROR_OCCURRED
- An error occurred. Use the error for more information.
Usage
CWBSO_CreateListHandle must
be called prior to calling this API. The list handle that is returned by CWBSO_CreateListHandle must
be passed as input to this API. CWBSO_CreateErrorHandle must
be called prior to calling this API. The error handle that is returned by CWBSO_CreateErrorHandle must
be passed as input to this API. When the list is no longer needed, the calling
program is responsible for doing the following:
- Call CWBSO_CloseList to close the list and free up
resources that are allocated on the iSeries server.
- Call CWBSO_DeleteListHandle to free up resources that
are allocated on the client.