Terminal Server Enumerate processes only belongin to the current user session
-
Hi, I need to enumerate the process (names), that is running the current user on a terminal server (the user starts his terminal "client", then starts my application and I need to know if some processes are running or not). I have tried to enumerate the processes names in a normal way, but then it gives me all the processes from all the sessions :-(. Thanks in advance, Greetings Braulio
-
Hi, I need to enumerate the process (names), that is running the current user on a terminal server (the user starts his terminal "client", then starts my application and I need to know if some processes are running or not). I have tried to enumerate the processes names in a normal way, but then it gives me all the processes from all the sessions :-(. Thanks in advance, Greetings Braulio
You can use WTSEnumerateProcesses(), which take WTS_PROCESS_INFO structure as one of its parameter. where you can specify session id. The session ID can be obtained from a variety of APIs including ProcessIdToSessionId, WTSQuerySessionInformation, or WTSEnumerateProcesses. greatest thing is to do wot others think you cant :)
suhredayan@omniquad.com