🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Suspend / resume a thread given only the thread id

#5893
From: Helmut Giese
Date: Thu, 23 Jun 2005 11:09
19 lines
1633 bytes
On Wed, 22 Jun 2005 15:44:46 -0700, Bob Gonder
<notbg@notmindspring.invalid> wrote:

Hello Bob,
you saved my day.
>The Win32 API does not provide a way to get the thread handle from the
>thread identifier. <snip> Instead, you must request the handle from
>the thread creator or the thread itself. 
>A thread can use the GetCurrentThread function to retrieve a pseudo
>handle to its own thread object. This pseudo handle is valid only for
>the calling process; it cannot be inherited or duplicated for use by
>other processes. To get the real handle to the thread, given a pseudo
>handle, use the DuplicateHandle function. 
As I stay within the same process this looks easy.
Thanks for the info - if I knew only half as much about Windows' API
I'd be king around here <g>.

Best regards
Helmut Giese
Technical Details
Message-ID: <42ba979d.3203297@forums.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42b9c7b5.8689343@forums.borland.com> <p8qjb156539901t2kvkts5fbma41hj3clc@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7fcdd3480d100ea8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Suspend / resume a thread given only the thread id
Date: Thu, 23 Jun 2005 11:09:41 GMT
Message-ID: <42ba979d.3203297@forums.borland.com>
References: <42b9c7b5.8689343@forums.borland.com> <p8qjb156539901t2kvkts5fbma41hj3clc@4ax.com>
X-Newsreader: Forte Free Agent 1.11/32.235
NNTP-Posting-Host: 84.138.3.40
X-Trace: newsgroups.borland.com 1119524913 84.138.3.40 (23 Jun 2005 04:08:33 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail