Re: Any Api on win NT to get thread handle from thread id?.



"henin" <henin@xxxxxxxxxxxxxxxx> wrote in message
news:jbcze.23$kx4.83@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a requirement that I want to know if a thread is alive or not,
> but I have only it's thread id and I am on win NT.
>
> Thanks,
> Henin.
>

OpenThread - Win2k+
ZwOpenThread - All Windows Nt

google would have found these very easily.

How do you get the thread-id? It is much better to keep track
of a thread through it's entire lifetime by keeping it's handle open
and then using WaitForSingleObject to check if its still alive..

James

--
www.catch22.net
Free win32 software, sourcecode and tutorials



.