Autor Beitrag
webmaker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 205



BeitragVerfasst: So 06.07.03 17:25 
Hi,
ich habe ein handle einer fremden Anwendung. Nun möchte ihc über dieses Handle den Pfad zur Anwendug wissen.
Wie geht das?
Vielen Dank für eure antworten

_________________
.::Wissen ist Macht, nichts wissen macht nichts::.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 06.07.03 17:43 
Mit GetWindowThreadProcessID die Process-ID holen, mit OpenProcess ein Process-Handle holen und mit GetModuleFileNameEx den Pfad holen. GetModuleFileNameEx existiert allerdings nur unter NT...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
webmaker Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 205



BeitragVerfasst: So 06.07.03 17:50 
und wie mache ich das unter allen Betriebssystemen?

_________________
.::Wissen ist Macht, nichts wissen macht nichts::.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: So 06.07.03 18:04 
Unter 9x die Process-ID ermitteln (steht oben), dann einen Process-Snapshot erstellen (-> CreateToolhelp32Snapshot) durch den Snapshot iterieren und die Process-ID raussuchen...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
webmaker Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 205



BeitragVerfasst: So 06.07.03 18:08 
Kannst du mir vielleicht ein Beispiel für alle Windows'e geben?
wäre echt nett von dir

_________________
.::Wissen ist Macht, nichts wissen macht nichts::.