Connect interface method

The Connect method is called to connect to the resource specified by the adapter object. Context information returned from the connection, such as handles, cursors or other contextual information, is returned by setting properties of the connection object.

In addition, this method should copy properties that are relevant for determining whether a connection can be shared (CompareConnection method). For example, if a connection can be shared when the datasource name matches, the datasource property should be obtained from the adapter object and set in the connection object.
MPIRC Connect 
(HMPICONNECT  hConnection, HMPIADAPT  hAdapter)

Inputs

hConnection
Connection handle
hAdapter
Adapter handle

Outputs

None

Returns

Success status