Give Us a Free Call: +1-877-99-BOPUP (877-992-6787)

IServerClientVBA::GetAccountInformation method

Retrieves information on current user account with a set of modification flags from the IM server.

Public Sub GetAccountInformation(     ByRef SessionFlags As Long,     ByRef FirstName As String,     ByRef LastName As String,     ByRef ResultCode As Long )

Parameters

SessionFlags
[out] Array of bitwise flags that indicate permissions of current user and relate to the IM client functionality. These flags are set on the IM server and cannot be changed by users. This member can be one or more of the following values:
SessionFlag.SessionFlag_ConfirmationMode
Requires the IM client to operate in the Confirmation Mode.
SessionFlag.SessionFlag_FileTransferDisabled
Sending files and directories is disabled.
SessionFlag.SessionFlag_BrandingEnabled
The IM server delivers image logo and associated URL (branding) on establishing session.
SessionFlag.SessionFlag_CannotChangeContacts
Changing user's contacts (Contact List) is disabled.
SessionFlag.SessionFlag_CanSendPriorityMessages
The user has permission to send urgent (priority) instant messages.
SessionFlag.SessionFlag_CanSendConfirmationMessages
The user has permission to send instant messages with confirmation response.
SessionFlag.SessionFlag_TypingEventDisabled
The IM server disables delivery of message typing event notification.
FirstName
[out] String variable that receives user's first name.
LastName
[out] String variable that receives user's last name.
ResultCode
[out] Variable of Long type that gets an extended code if error result is returned. For available codes see Available Extended Codes topic.

Return Value

S_OK
The function was successful.
E_INVALIDARG
One or more arguments are incorrect.
E_FAIL
Some error occurred in the function. Check ResultCode variable to get extended information on the error.