Sign the user on to the iSeries™ system that is represented by the specified system object by using user ID and password.
UINT CWB_ENTRY cwbCO_Signon( cwbCO_SysHandle system, cwbSV_ErrHandle errorHandle );
The following list shows common return values:
Other return codes commonly may be returned as a result of a failed attempt to connect to the signon server. For a list of such return codes, see comments for cwbCO_Connect.
Both whether the user is prompted for user ID and password, and whether the iSeries system actually is contacted during user validation, are influenced by current system object settings, such as user ID, password, Prompt Mode, Default User Mode, and Validate Mode. See declarations for the get/set APIs of these attributes for more information. If the iSeries system as named in the specified system object does not exist in the System List, and the system object Persistence Mode is set appropriately, then when cwbCO_Connect or cwbCO_Signon first is called successfully, the iSeries system, as named in the system object, will be added to the System List.
For more information about the Persistence Mode, see the comments for cwbCO_SetPersistenceMode. If successful, and iSeries server password caching is enabled, the password will be stored for the resulting user ID in the PC's iSeries server password cache.
See also: