Gets the name of the currently logged-in user. This function is only available on Windows.
C#: string GetLoggedInUser(out string errorMessage);
errorMessage - message returned if the user name cannot be retrieved
Returns the name of the logged in user
Article is closed for comments.