The Connection Class 
The CRfcConnection Class establishes connections to R/3 following the user-specified connection mode. You can also use it to verify user logon information. For Windows applications, all logon and connection information can be written and read from the registry.