exe name by hWnd
-
hoi,
ich hab en hWnd und will jetzt dazu den pfad der exe die das window erstellt hat.mfg tobZel
-
Wird beide in diesem Artikel beschrieben_
http://msdn.microsoft.com/msdnmag/issues/02/07/CQA/In Kurzform: GetWindowThreadProcessId, dann Prozess suchen mit EnumProcessModules
-
Naja das Problem dabei ist das GetWindowThreadProcessId mir die PID liefert aber EnumProcessModules nen handle zum prozess will. Muss ich jetzt nicht noch irgentwie den Prozess "öffnen".
mfg tobZel
-
tobZel schrieb:
Naja das Problem dabei ist das GetWindowThreadProcessId mir die PID liefert aber EnumProcessModules nen handle zum prozess will. Muss ich jetzt nicht noch irgentwie den Prozess "öffnen".
Ist doch im Beispiel Code des Artikel beschrieben: OpenProcess verwenden!