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

message

string

return error message if there was an error during the operation

Return

TypeDescription

string

returns the name of the logged in user

Last updated