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