Autor Beitrag
maps
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: So 23.04.06 15:49 
Hallo.

Ich möchte herausfinden zu welchem Modul ein bestimmter Thread (eines fremden Prozesses) gehört.

Sysinternals' Process Explorer macht's vor:
user defined image

Die Start-Adresse ist mir jedoch unwichtig.


Vielen Dank!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 23.04.06 17:05 
Ansich ist das relativ einfach:
1. Aktuellen Thread-Kontext ermitteln (der kompliziertere Teil)
2. Auswerten der Start-Adresse

Zu ersterem: GetThreadStartInformation
Zu zweiterem: GetModuleInformation

Genauer werd ich das hier nicht ausführen, da diese Lösung eh nur grob ist ... Außerdemwird bei SysInternals vieles über Treiber geregelt, die dynamisch nachgeladen werden, weshalb die von SysInternals ermittelten Informationen um einiges zuverlässiger sind.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.