AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi Enumerate tasks - get explorer window directory
Thema durchsuchen
Ansicht
Themen-Optionen

Enumerate tasks - get explorer window directory

Ein Thema von WojTec · begonnen am 4. Okt 2014 · letzter Beitrag vom 18. Okt 2014
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Enumerate tasks - get explorer window directory

  Alt 4. Okt 2014, 18:52
Delphi-Version: XE5
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).

  Mit Zitat antworten Zitat
Dennis07

Registriert seit: 19. Sep 2011
Ort: Deutschland
482 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Enumerate tasks - get explorer window directory

  Alt 9. Okt 2014, 22:55
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.
Dennis
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: AW: Enumerate tasks - get explorer window directory

  Alt 18. Okt 2014, 11:03
not process EXE icon, but task icon
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
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:55 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