Get AppData\Local folder for logged user
问题 I'm currently using: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) To retrieve current user's AppData\Local path. The program requires elevated privileges and running it under standard user session throws a prompt requiring administrator's login credentials. Logging as an administrator (different user) apparently changes active user for the program. The returned folder path is thus administrator's and not the one the standard user uses. Expected result: C:\Users