Sys_UserLoggedOn
Description
Section titled “Description”Determines if a user is logged on to the computer. A user is logged on if Explorer (explorer.exe) is running, or the shell of a Windows kiosk (CustomShellHost.exe or eshell.exe) is running.
Syntax
Section titled “Syntax”Sys_UserLoggedOn() As Boolean
Return value
Section titled “Return value”If a user is logged on, gbValue is True and gsValue contains Domain\UserName of the user. If more than one user is logged on, for example on a Remote Desktop server, gsValue contains one of them.
If no user is logged on, gbValue is False.
Example
Section titled “Example”If bStatus Then bStatus = Sys_UserLoggedOn()If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)