how to get process title

Hi,

How to get process tiltle in an application? instead of getting process name
I want to know the title of the process for example I want “windows media
player” rather than wmplayer.exe.

Any information is helpful.

thanks,
Kedar.

cant that be found out from the active window of the process???

On 6/7/06, kedar wrote:
>
> Hi,
>
> How to get process tiltle in an application? instead of getting process
> name
> I want to know the title of the process for example I want “windows media
> player” rather than wmplayer.exe.
>
> Any information is helpful.
>
> thanks,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>



- amitr0

This is usermode… You need to use the win32 api FindWindow (or
FindWindowEx), followed by a call to GetWindowText.

m

amitr0 wrote:

cant that be found out from the active window of the process???

On 6/7/06, *kedar* > mailto:xxxxx> wrote:
>
> Hi,
>
> How to get process tiltle in an application? instead of getting
> process name
> I want to know the title of the process for example I want
> “windows media
> player” rather than wmplayer.exe.
>
> Any information is helpful.
>
> thanks,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> http:
>
>
>
>
> –
>
> - amitr0 — Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
> List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer</http:></mailto:xxxxx>

This assumes that there is only one top level active window for any
application, an assumption that can easily be not true.

d

– I can spell, I just can’t type.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of amitr0
Sent: Wednesday, June 07, 2006 3:20 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how to get process title

cant that be found out from the active window of the process???
On 6/7/06, kedar wrote:
Hi,

How to get process tiltle in an application? instead of getting process
name
I want to know the title of the process for example I want “windows
media
player” rather than wmplayer.exe.

Any information is helpful.

thanks,
Kedar.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer



- amitr0 — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

kedar wrote:

Hi,

How to get process tiltle in an application? instead of getting process name
I want to know the title of the process for example I want “windows media
player” rather than wmplayer.exe.

To add to the other responses, which were correct, I want to make sure
it is clear that processes do not have titles. Processes can own
windows, and windows have titles. Thus, if you have a process id, you
can find one of its top-level windows (most only have one), and get the
caption from that.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

I’m not even sure that the other answers regarding the window title are
really what you want… I’m betting that perhaps you’re thinking of the
name of the shortcut that opened the process. I don’t think there’s any
way to get that, but I could be wrong.

In any event, clarifying your question might improve the responses.

kedar wrote:

Hi,

How to get process tiltle in an application? instead of getting process name
I want to know the title of the process for example I want “windows media
player” rather than wmplayer.exe.

Any information is helpful.

thanks,
Kedar.


Ray

Do you mean executable Description?

If means, you can read “FileDescription” of Version resource.

Usually Process Viewers (like Sysinternals Process Explorer) will display “FileDescription” as process’s description.

Use VerQueryValue API.

kedar wrote:
Hi,

How to get process tiltle in an application? instead of getting process name
I want to know the title of the process for example I want “windows media
player” rather than wmplayer.exe.

Any information is helpful.

thanks,
Kedar.


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Keep Faith on the Supreme Lord Sri Sri Sri Krishna. He will take care of you.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Windows has no such things as “process titles” at all. It only has the
executable pathnames, the VersionInfo resources in the executables (yes, this
is used by Windows firewall and by DrWatson) and the main window titles.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “kedar”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, June 07, 2006 2:12 PM
Subject: [ntdev] how to get process title

> Hi,
>
> How to get process tiltle in an application? instead of getting process name
> I want to know the title of the process for example I want “windows media
> player” rather than wmplayer.exe.
>
> Any information is helpful.
>
> thanks,
> Kedar.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer