FurqanAhmed
Programmer
Hi All,
i am retreaving user name from windows service by using the following two methods
string usr = Environment.UserName;
string usr = System.Windows.Forms.SystemInformation.UserName;
the string "SYSTEM" is returned from both methods, but i want to get the name of the user who is currently logged In.
please anyone know, how to get the current user of the system, so please let me know
Best Regards
YEH GHAZI YEH TERAY PUR-ASRAR BANDAY
i am retreaving user name from windows service by using the following two methods
string usr = Environment.UserName;
string usr = System.Windows.Forms.SystemInformation.UserName;
the string "SYSTEM" is returned from both methods, but i want to get the name of the user who is currently logged In.
please anyone know, how to get the current user of the system, so please let me know
Best Regards
YEH GHAZI YEH TERAY PUR-ASRAR BANDAY