vendredi 17 avril 2015

Getting logged in user not the user running the program C#, Windows

How to get the current logged in user?


I already tried



Environment.CurrentUser


and



WindowsIdentity.GetCurrent().


Both of them return the user that is running the programm.


Thanks for your help.


Kind Regards, Sandro


Aucun commentaire:

Enregistrer un commentaire