In C# How to get the currently logged on windows user if the application is executed by differnt user using Run as?
WindowsIdentity.GetCurrent(); always gives the Run as user or impersonated user. I just want the windows logged on user name and user account type.