Hi,
My application/exe needs to get the session id of the invoker programetically- C#. I have used WTS APIs and check if the sessionstate is active then return sessionid. This works when there are single users connected to Terminal server. When there are multiple active sessions then the logic fails.
I have refered the URL :http://www.codeproject.com/Articles/111430/Grabbing-Information-of-a-Terminal-Services-Sessio
This lists all the sessions. I need to get the sessionid of the invoker only not all active.
Please help