Getting current logged in user
-
How to get the current logged in user ? Any idea ? Thanks in advance.
Thanks, Anand.
-
How to get the current logged in user ? Any idea ? Thanks in advance.
Thanks, Anand.
How about
GetUserName()
?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
How to get the current logged in user ? Any idea ? Thanks in advance.
Thanks, Anand.
Also see WTSEnumerateSessions and WTSQueryUserToken in case you are interested in more than just the user logged into the console or your specific session from which the application is running.