API Reference

GetLoggedInUser

Description

Gets the name of the currently logged-in user. This function is only available on Windows.

string GetLoggedInUser(out string errorMessage)

Parameters

ParameterTypeDescription
messagestringreturn error message if there was an error during the operation

Return

TypeDescription
stringreturns the name of the logged in user