Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetUserLogonName

Return the user name associated with the session.

Declaration

pTEXT ctdbGetUserLogonName(CTHANDLE Handle)

Description

ctdbGetUserLogonName() returns the user name associated with the session. It is necessary to logon to the server with ctdbLogon() before getting the user name.

  • Handle [in] the session handle.

Returns

ctdbGetUserLogonName() returns a pointer to the User name, or NULL on failure.

Example


username=ctdbGetUserLogonName(hSession);

servname=ctdbGetServerName(hSession);

See also

ctdbGetServerName(), ctdbAllocSession()

TOCIndex