It_NewServerConnection 

Use

Connects to an SAP application server using server information.

Syntax

HANDLE DLEX It_NewServerConnection (const char *id, const char *ms,
Const char *router, const char *server, long flags);

Parameters

id

SAP System ID that identifies the SAP System. The list of SAP Systems is retrieved from the file SAPMSG.INI.

ms

Hostname of the message server. The message server routes the service to various application servers. This message server will provide a list of the currently available application servers that are running on the selected system. Each SAP System provides one message server. This information is stored in the file SAPMSG.INI.

router

Destination router used to connect to the message server as well as to the listed application servers. The list of available SAP routers is retrieved from the file SAPROUTE.INI.

server

A specific application server from a list of currently available servers in a system. You can obtain this list of servers by using the It_Server_Lookup function.

flags

Flags to control the connection operation. (The same flags are used in all of the connection functions.)

Return Value

Returns the handle to an SAP Automation GUI session if successful, otherwise returns FALSE.

See Also

It_Login, It_Logoff, It_NewConnection, It_NewGroupConnection