Article View: borland.public.cppbuilder.nativeapi
Article #4664Re: Getting MainWindow Thread Handle
From: Remy Lebeau (TeamB)
Date: Fri, 16 Dec 2005 18:49
Date: Fri, 16 Dec 2005 18:49
12 lines
1336 bytes
1336 bytes
"tinyabs" <nospam@me.com> wrote in message news:43a30639@newsgroups.borland.com... > How do I get the thread handle of the main message loop? Call GetCurrentThread() in the context of the main thread. If you need to use the handle in other threads, then you need to call DuplicateHandle() afterwards. Gambit
Technical Details
Message-ID:
<43a30d2d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43a30639@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,602079d8d973731b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43a30639@newsgroups.borland.com> Subject: Re: Getting MainWindow Thread Handle Date: Fri, 16 Dec 2005 10:49:42 -0800 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43a30d2d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1134759213 68.69.17.41 (16 Dec 2005 10:53:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail