Umamahez
asked on
To find a process across multiple RDP sessions
Hello Experts,
I am trying to find if a process is running in another RDP session, including the current session?
I want to scan the RDP sessions to see if my process say processA.exe is running in any of them, so that if some body else tries to start it , it should pop up a message saying that the process is already running and possibly the name of the user who is running it.
This must be done in VB6.0.
I found this link on the net which talks about Microsoft Windows API WTSEnumerateProcesses function allows you to obtain information about the active processes running on a Terminal Server machine.
http://support.microsoft.com/default.aspx?scid=kb;en-us;253140#appliesto
Do you think this is something that would help me?
There was another function in C Language....about something similar too. here is the link for that one.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwts/html/tsappdev.asp
Please help.
Thanks
I am trying to find if a process is running in another RDP session, including the current session?
I want to scan the RDP sessions to see if my process say processA.exe is running in any of them, so that if some body else tries to start it , it should pop up a message saying that the process is already running and possibly the name of the user who is running it.
This must be done in VB6.0.
I found this link on the net which talks about Microsoft Windows API WTSEnumerateProcesses function allows you to obtain information about the active processes running on a Terminal Server machine.
http://support.microsoft.com/default.aspx?scid=kb;en-us;253140#appliesto
Do you think this is something that would help me?
There was another function in C Language....about something similar too. here is the link for that one.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwts/html/tsappdev.asp
Please help.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I solved the problem by refering to these links
1.
http://support.microsoft.com/default.aspx?scid=kb;en-us;253140#appliesto
2.https://www.experts-exchange.com/questions/20407184/Running-VB-executables-as-different-users.html
In case any body was looking for a similar solution....I have posted it.