ct_setloginfo

Description

Transfer TDS login response information from a CS_LOGINFO structure to a CS_CONNECTION structure.

Syntax

CS_RETCODE ct_setloginfo (connection, loginfo)
 
 CS_CONNECTION       *connection;
 CS_LOGINFO                *loginfo;

Parameters

connection

A pointer to a CS_CONNECTION structure. A CS_CONNECTION structure contains information about a particular client/server connection.

loginfo

A pointer to a CS_LOGINFO structure.

Returns

ct_setloginfo returns the following values:

Return value

Meaning

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

CS_BUSY

An asynchronous operation is already pending for this connection. See “Asynchronous programming”.

Usage


TDS passthrough


Copying login properties

For information on using ct_setloginfo to copy login properties from an open connection to a newly allocated connection structure, see “Copying login properties”.

See also

ct_getloginfo, ct_recvpassthru, ct_sendpassthru