O/H mauro russo έγραψε:
> Dear all,
>
> Is there a way to get the TThread object starting from the ThreadId?
>
Not sure what you mean by that...
Why not to store a reference of your thread object in a variable?
anyway, go to the "Processes and Threads" topic of the SDK online help.
There you'll find functions like GetThreadID(), OpenThread() etc.
Also, may heap walking is an answer to your problem, so you may need to use
tool help functions and structures found in TlHelp32.pas.
In perticular check the Thread32First(), Thread32Next() etc.
Search the net for all those calls. You should find plenty examples of use.
--
Regards
Theo
------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
http://groups.yahoo.com/group/Greek_Delphi_Prog
CSharpDotNetGreek : A C# and .Net mailing list in Greek language at
http://groups.yahoo.com/group/CSharpDotNetGreek
atla_custom : a Unisoft Atlantis Customization mailing list at
http://groups.yahoo.com/group/atla_custom
------------------------
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/delphi-en/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/