如何获得外部窗口的友好名称? [英] How do I get an external window's friendly name?

查看:71
本文介绍了如何获得外部窗口的友好名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何获取外部窗口的进程名称或窗口标题。



我的友好名称是什么意思。 。 。



当我输入这个问题时,Firefox的标题在任务栏中悬停在它的图标上时显示:提问 - CodeProject,但在taskmanager(windows 8)中它读取在进程选项卡上作为Firefox(32位)。我不是在谈论你在详细信息选项卡(firefox)上找到的进程名称。



另一个例子:



我在C浏览器上打开了Windows资源管理器:\程序文件\



窗口标题是程序文件

进程是资源管理器

任务管理器的进程选项卡上显示的友好名称是:Windows资源管理器

I know how to get an external window's process name or it's window title.

What I mean with friendly name,. . .

As I type this question, Firefox's title when hovering on it's icon in the taskbar reads: Ask a Question - CodeProject, yet in taskmanager (windows 8) it reads as Firefox(32bit) on the process tab. I am not talking about the process name you find on the details tab (firefox).

Another example:

I have windows explorer open at C:\Program Files\

The window caption is "Program Files"
the process is "explorer"
the friendly name as displayed on the process tab of task manager is: "Windows Explorer"

推荐答案

我认为这就是你所追求的......如果不仅仅是回复,我将删除解决方案。



http://www.kirsbo.com/Getting_description_from_a_process_in_VB.NET [ ^ ]
I think this is what you are after ... if not just respond and I will remove the solution.

http://www.kirsbo.com/Getting_description_from_a_process_in_VB.NET[^]


谢谢@ CHill60。这让我走上了正确的道路。
Thanks @CHill60. That put me on the right path.


这篇关于如何获得外部窗口的友好名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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