Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSession::BeginImpersonation

Enables the ability of the thread to support impersonation by another thread.

Declaration

void CTSession::BeginImpersonation( NINT taskId )

Description

Start the impersonation of the specific task ID.

Stores the current "lock mode" in the prevlockmode session property and begins the impersonation for the given taskId (ctImpersonateTask()).

Retrieves the server side "lock mode" ctdbGetLockMode() after the impersonation and updates the lockmode session property.

Note: This function is not supported by the FairCom Server by default. It requires a custom build of the server available by special request.

Return

void

See Also

CTSession::EndImpersonation()

TOCIndex