Skip to main content

What it does

Opens a connection to the Application Server.
You must specify a valid combination of roleType and stationType (i.e. the station you specify for a role must be accessible to that role). Otherwise the session will not be opened. For detailed information about roles and their accessible stations, see Operators of ABBYY FlexiCapture.

Definition

int OpenSession( int roleType, int stationType );

Parameters

NameTypeDescription
roleTypeintThe type of role to be used for the connection. See RoleType for possible values.
stationTypeintThe type of connecting station. See WorkstationType for possible values.

Returned value

TypeDescription
intThe ID of the opened connection