/// <summary> /// Gets the name of the user who owns the session that this application is part of, if any. /// /// If this application is part of a session that was launched from UFE, this function /// will return the name of the user that launched the session. If this application is /// not part of a session, this function will return the name of the local user account /// under which the application is running. /// </summary> /// <returns>Name of session owner.</returns> public static string GetSessionOwner() { using (FStringUnsafe resultUnsafe = FStringPool.New()) { Native_FApp.GetSessionOwner(ref resultUnsafe.Array); return(resultUnsafe.Value); } }