GetUserName

Returns the username of the connected user.

Syntax

<HsvSystemInfo>.GetUserName pbstrUserName

Argument

Description

pbstrUserName

String. Returns the username of the connected user.

Example

The following example prints the username of the connected user to Visual Basic’s Immediate window.

Dim cSysInfo As HsvSystemInfo, sUserName As String
'm_cHsvSession is an HsvSession object reference
Set cSysInfo = m_cHsvSession.SystemInfo
cSysInfo.GetUserName sUserName
Debug.Print sUserName