Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Enumerate tasks - get explorer window directory (https://www.delphipraxis.net/182152-enumerate-tasks-get-explorer-window-directory.html)

WojTec 4. Okt 2014 18:52

Delphi-Version: XE5

Enumerate tasks - get explorer window directory
 
In task manager there are icons for tasks.

I know how to get tasks and some extra info about it, but I don't know how to get directory path for explorer instances. I want to know it to get opened folders icons (not process EXE icon, but task icon, you know).

:?:

Dennis07 9. Okt 2014 22:55

AW: Enumerate tasks - get explorer window directory
 
Hi,
using the Windows API you can obtain the file path of a process.
Then, you can extract the icon from it.

To get the path, you'll need the so-called Process ID (DWORD type).
Bei Google suchenDelphi Get Process ID

Then, the TModuleEntry32 will probably help you further.
Bei Google suchenDelphi Get Process File Path

To get the icon of a file, you may use something like this.

WojTec 18. Okt 2014 11:03

Re: AW: Enumerate tasks - get explorer window directory
 
Zitat:

Zitat von WojTec (Beitrag 1274813)
not process EXE icon, but task icon

Zitat:

Zitat von Dennis07 (Beitrag 1275493)
using the Windows API you can obtain the file path of a process.
Then, you can extract the icon from it.

So, task icon, not process icon :?


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz