Creates a new instance of an object and returns a handle to the new instance. This does not create a new object on the iSeries™ server. It merely creates an additional instance of an iSeries object on the client. Object handles that are returned by CWBSO_GetObjHandle are always destroyed when the list that contains the object is closed. This API allows the creation of an instance of the object that will persist after the list is closed. The object instance that was created by this API is kept in sync with the object in the list. In other words, if one of the objects is changed, the changes will be apparent in the other object.
unsigned int CWB_ENTRY CWBSO_CopyObjHandle( CWBSO_OBJ_HANDLE objectHandle, CWBSO_OBJ_HANDLE far* lpNewObjectHandle);
The following list shows common return values.
CWBSO_GetObjHandle or CWBSO_CopyObjHandle must be called prior to calling this API. The object handle that is returned by CWBSO_GetObjHandle or CWBSO_CopyObjHandle must be passed as input to this API. When the object is no longer needed, the calling program is responsible for doing the following: