This function sets the user ID to associate with the specified system object. This user ID will be used when connecting to the iSeries™ server with either the cwbCO_Signon or cwbCO_Connect call.
UINT CWB_ENTRY cwbCO_SetUserIDEx(
cwbCO_SysHandle system,
LPCSTR userID );
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. Setting a user ID explicitly with this API will cause any default user mode set with the cwbCO_SetDefaultUserMode API to be ignored.