Re: Any Api on win NT to get thread handle from thread id?.
- From: "James Brown" <remove_james_dot_brown7_at_virgin_dot_net>
- Date: Thu, 7 Jul 2005 17:04:01 +0100
"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
.
- Follow-Ups:
- Re: Any Api on win NT to get thread handle from thread id?.
- From: Arnaud Debaene
- Re: Any Api on win NT to get thread handle from thread id?.
- References:
- Prev by Date: Re: Any Api on win NT to get thread handle from thread id?.
- Next by Date: Re: Problems w. platform SDK
- Previous by thread: Re: Any Api on win NT to get thread handle from thread id?.
- Next by thread: Re: Any Api on win NT to get thread handle from thread id?.
- Index(es):
Relevant Pages
|