Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to get the list of all opened windows on a remote machine as seen in task manager's application tab for local machine. Is it possible to get them using rasapi32.dll? If so, how would I go about this?
Posted
Updated 23-Nov-11 0:25am
v2

1 solution

Task Manager doesn't show you a list of opened windows, it shows you a list of running applications. This is a fairly important distinction, and if this is the effect you are trying to achieve, you don't need to step outside of the standard .NET framework to achieve this.

You can use System.Diagnostics.Process.GetProcesses to retrieve an array of all processes running on a remote machine. All you need to supply is the computer name to do this:
C#
Process[] processes = Process.GetProcesses("RemoteMachineName"); // You can also use an IP address here
You can find more information on this here[^].
 
Share this answer
 
Comments
johnyroyan 23-Nov-11 6:48am    
please see task manager's applications tab. i need to do this for a remote machine with the icons. i don't need the processes of remote machine.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900