Module from Thread

delphi package - easy access to kernel objects etc.
Post Reply
Posts: 28
Joined: Wed Feb 14, 2007 4:18 am

Module from Thread

Post by Unlimited »

Hi madshi and All coder...

I need to find the threads created by "examplemodule.dll" inside "someprocess.exe". How do I know? Is it possible?

Site Admin
Posts: 10528
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I don't think there's a simple and fool proof solution. You could check the callstack to see in which module code the thread is running. But there's no guarantee that this will tell you the creator of the thread (although it's probably that you'd get the right module).
Post Reply