ct_getloginfo

Description

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

Syntax

CS_RETCODE ct_getloginfo (connection, logptr)
 
 CS_CONNECTION    *connection;
 CS_LOGINFO             **logptr;

Parameters

connection

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

logptr

A pointer to a program variable which ct_getloginfo sets to the address of a newly allocated CS_LOGINFO structure.

Returns

ct_getloginfo 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 about using ct_getloginfo to copy login properties from an open connection to a newly allocated connection structure, see “Properties”.

See also

ct_recvpassthru, ct_sendpassthru, ct_setloginfo