获取句柄到一个进程的所有窗口 [英] Get handles to all windows of a process

查看:177
本文介绍了获取句柄到一个进程的所有窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用过程中类,我可以得到的句柄进程的主窗口,但我需要访问一个窗口,是不是其进程的主窗口C#。 ?我怎样才能获得句柄的所有进程的窗口

In C# using the process class I can get the handle to the Main Window of a process but I need access to a window that is not the main window of its process. How can I get the handle to all of the windows of a process?

推荐答案

EnumChildWindows 功能可以帮助你。子窗口也可能有孩子等。

The EnumChildWindows function might help you out. The child windows could also have children and so on.

还有的 GetWindow 和的 EnumThreadWindows

这篇关于获取句柄到一个进程的所有窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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