Creates a duplicate handle to an object. Use this API to get another handle to the same iSeries™ object. This new handle will be valid until the cwbOBJ_DeleteObjHandle() API has been called to release it.
unsigned int CWB_ENTRY cwbOBJ_CopyObjHandle(
cwbOBJ_ObjHandle objectHandle,
cwbOBJ_ObjHandle *newObjectHandle,
cwbSV_ErrHandle errorHandle);
The following list shows common return values.
If you have a handle to an object in a list and wish to maintain a handle to that object after the list has been close this API allows you to do that. cwbOBJ_DeleteObjHandle() must be called to release resources for this handle.