Verifies that a connection can be made to a specific host service on an iSeries™ system.
UINT CWB_ENTRY cwbCO_Verify( cwbCO_SysHandle system, cwbCO_Service service, cwbSV_ErrHandle errorHandle );
The following list shows common return values.
This API does not require user ID and password to be set, nor will it cause a signon to occur, thus it will never prompt for this information. It does not change the state of the system object in any way.
If a connection to any specified service already exists, no new connection will be established, and connectability will be considered verified for that service.
If CWBCO_SERVICE_ALL is specified for verification, the return code will be CWB_OK only if ALL services can be connected to. If any one verification attempt fails, the return code will be that from the first failure, although verification of the other services still will be attempted.
Since this API does not establish a usable connection, it automatically will disconnect when the verification is complete; therefore, do NOT call cwbCO_Disconnect to end the connection.