[英]How to know if process is application - Windows
Using EnumProcesses I am able to get list of currently running processes. 使用EnumProcesses我能够获得当前正在运行的进程列表。 But how do I know which of them are applications?
但我如何知道哪些是应用程序? I am talking this wrt task manager, see here .
我正在谈论这个wrt任务经理,请看这里 。
I guess IsWindow()
function is what I need.. right? 我猜
IsWindow()
函数是我需要的......对吧? If not, please guide further. 如果没有,请进一步指导。
You are looking for the top-level visible windows. 您正在寻找顶级可见窗口。 Find these with
EnumWindows
. 使用
EnumWindows
查找这些内容。 This enumerates all top-level windows. 这列举了所有顶级窗口。 The ones you are interested are the visible ones.
你感兴趣的是可见的。 Call
IsWindowVisible
to obtain that information. 调用
IsWindowVisible
来获取该信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.