Re: Any Api on win NT to get thread handle from thread id?.
- From: "Mihai N." <nmihai_year_2000@xxxxxxxxx>
- Date: Thu, 07 Jul 2005 22:20:00 -0700
> 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.
See CreateToolhelp32Snapshot, followed by Thread32First and Thread32Next
The problem is that the ToolHelp Library is there for all systems but NT :-(
Fot NT you have to use PSAPI, with EnumProcesses and EnumProcessModules.
Not sure about threads though. Where do you get the thread ID from?
--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email
.
- References:
- Prev by Date: Re: How to raise rights...
- Next by Date: Re: Ctrl-C simulation
- Previous by thread: Re: Any Api on win NT to get thread handle from thread id?.
- Next by thread: OpenProcess() and system processes, access denied
- Index(es):
Relevant Pages
|