[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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



0
Umamahez
Asked:
Umamahez
1 Solution
 
UmamahezAuthor Commented:
Hello everybody,
I solved the problem by refering to these links
1.
http://support.microsoft.com/default.aspx?scid=kb;en-us;253140#appliesto


2.http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20407184.html

In case any body was looking for a similar solution....I have posted it.
0
 
EE_AutoDeleterCommented:
Umamahez,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now