To find a process across multiple RDP sessions

Posted on 2006-06-07
Last Modified: 2010-04-30
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.;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.

Please help.

Question by:Umamahez

    Author Comment

    Hello everybody,
    I solved the problem by refering to these links


    In case any body was looking for a similar solution....I have posted it.

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now