Click to See Complete Forum and Search --> : Get thread Handle


Xose
July 6th, 2004, 10:21 AM
Is there any function in Windows API that given a thread Id returns a Handle to that thread?

Bond
July 6th, 2004, 10:37 AM
OpenThread()

pengch
July 6th, 2004, 10:40 PM
OpenThread()

Requirements
Windows NT/2000 or later: Requires Windows 2000 or later.
Windows 95/98/Me: Requires Windows Me.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib

NoHero
July 7th, 2004, 01:16 AM
if you want to use something that works with Windows 9X too, you have to use the Toolhelper ... and their snapshots:

take a look here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/tool_help_library.asp