A login property is a connection property that specifies a value needed to connect to a server. For example, CS_USERNAME and CS_PASSWORD are login properties.
An application copies login properties from an established connection to a new connection structure. To do this, an application:
Allocates a connection structure (ct_con_alloc).
Customizes the connection (ct_con_props).
Opens the connection (ct_connect).
Calls ct_getloginfo to allocate a CS_LOGINFO structure and copy the connection‘s login properties into it.
Allocates a second connection structure (ct_con_alloc).
Calls ct_setloginfo to copy login properties from the CS_LOGINFO structure to the second connection structure. After copying the properties, ct_setloginfo deallocates the CS_LOGINFO structure.
Customizes any properties which should be different in the second connection (ct_con_props).
Opens the second connection (ct_connect).