远程机器的应用程序(所有打开的窗口) [英] Remote machine's applications(all opened windows)

查看:78
本文介绍了远程机器的应用程序(所有打开的窗口)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试获取远程计算机上所有打开的窗口的列表,如本地计算机的任务管理器的应用程序"选项卡所示.是否可以使用rasapi32.dll来获取它们?如果是这样,我将如何处理?

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?

推荐答案

任务管理器不会向您显示已打开的窗口列表,而是向您显示正在运行的应用程序列表.这是一个非常重要的区别,如果这是您要实现的效果,则无需超出标准.NET框架即可实现.

您可以使用System.Diagnostics.Process.GetProcesses检索在远程计算机上运行的所有进程的数组.您只需要提供计算机名称即可:
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:
Process[] processes = Process.GetProcesses("RemoteMachineName"); // You can also use an IP address here

您可以在此处 [

这篇关于远程机器的应用程序(所有打开的窗口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆