This function sets the password to associate with the specified system object. This password will be used when connecting to the iSeries™ server with either the cwbCO_Signon or cwbCO_Connect call, and when a user ID has been set with the cwbCO_SetUserIDEx call.
UINT CWB_ENTRY cwbCO_SetPassword( cwbCO_SysHandle system, LPCSTR password );
The following list shows common return values.
This API cannot be used after a successful signon has occurred for the specified system object. A signon has occurred if either cwbCO_Signon or cwbCO_Connect has been called successfully for this system object. A password set with this API will not be used unless a corresponding user ID has been set with cwbCO_SetUserIDEx.
Valid password lengths depend on the current setting of the iSeries system password level. Password levels 0 and 1 allow passwords up to 10 characters in length. Password levels 2 and 3 allow passwords up to 128 characters in length.