🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1227

Re: Handle from ThreadId, CreateToolhelp32Snapshot, THREADENTRY32

#1227
From: Richard Kavanagh
Date: Thu, 11 Oct 2007 18:31
13 lines
1559 bytes
> On Windows 2000 and later, you can use OpenThread().  On older versions,
> there is no direct way to get a thread handle from a thread ID and vice
> versa.  Have a look at the following posting for more information:
>
>
> http://groups.google.com/group/borland.public.delphi.winapi/msg/ed9350f2ffdd3432
>
> Gambit

Thank you Remy,
 OpenThread() is just what I need. Pity that the method shown in the link is 
so convoluted.
Richard 
Technical Details
Message-ID: <470e6be7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <470e1044$1@newsgroups.borland.com> <470e5eca$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,41b94c13173582a2
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Richard Kavanagh" <dd.foldhill[at]googlemail.com>
From: "Richard Kavanagh" <dd.foldhill[at]googlemail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <470e1044$1@newsgroups.borland.com> <470e5eca$1@newsgroups.borland.com>
Subject: Re: Handle from ThreadId, CreateToolhelp32Snapshot, THREADENTRY32
Date: Thu, 11 Oct 2007 19:31:02 +0100
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 84.92.225.65
Message-ID: <470e6be7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1192127463 84.92.225.65 (11 Oct 2007 11:31:03 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail