Connect 

Syntax

BOOL Connect (LPCTSTR HostName, LPCTSTR SystemNumber,
SapGuiFlags Flags)

Parameters

HostName

Name of SAP System host; may be TCP/IP network identifier

SystemNumber

SAP System number

Flags

Flags to control various aspects of the connection operation.

The same flags are used in all of the connection methods.

Each of the flags is based on a GUI Library connection flag.

Return Value

Returns TRUE on success, FALSE on error.

Comments

Connects to an SAP system using the given parameters. Can then be followed by Logon or Logoff methods. Supersedes OpenConnection method.