cwbCO_GetPortLookupMode

Purpose

This function gets, for the specified system object, the mode or method by which host service ports are looked up when they are needed by iSeries™ Access for Windows® to establish a service connection.

Syntax

 
UINT CWB_ENTRY cwbCO_GetPortLookupMode(
                             cwbCO_SysHandle         system,
                             cwbCO_PortLookupMode   *mode );

Parameters

cwbCO_SysHandle system - input
Handle that previously was returned by cwbCO_CreateSystem or cwbCO_CreateSystemLike. It identifies the iSeries system.
cwbCO_PortLookupMode * mode - output
Returns the host service port lookup mode. See comments for cwbCO_SetPortLookupMode for possible values and their meanings.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWB_INVALID_API_HANDLE
Invalid system handle.
CWB_INVALID_POINTER
The mode pointer is NULL.

Usage

None.