Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSession::IsExclusive

Retrieves the status of the session exclusive flag.

Declaration

CTBOOL CTSession::IsExclusive();

Description

CTSession::IsExclusive() retrieves the status of the session exclusive flag.

Return

Value

Symbolic Constant

Explanation

0

NO

Session is not exclusive.

1

YES

Session is exclusive.

Example


// verify an exclusive logon

CTSession hSession(CTSESSION_CTDB);

hSession.SetExclusive(YES);

hSession.Logon("FAIRCOM", "ADMIN", "ADMIN");

if (hSession.IsExclusive())

printf("Session is exclusive\n");

else

printf("Session is shared\n");

See Also

CTSession::SetExclusive(), CTDatabase::SetExclusive(), CTDatabase::IsExclusive()

TOCIndex