🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Main Thread ID

#1856
From: Remy Lebeau (TeamB)
Date: Sun, 27 May 2007 18:56
14 lines
1170 bytes
"mauro" <m.russo@uniplan.it> wrote in message
news:46581ab4$1@newsgroups.borland.com...

> how to obtain the Id of the Main Thread?

The VCL has a global MainThreadID variable for that.

If you want to obtain the ID manually, then you have to call
GetCurrentThreadId() in the context of the main thread, such as during
program startup.


Gambit
Technical Details
Message-ID: <4659d495@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46581ab4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7babfd917db50fe4
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46581ab4$1@newsgroups.borland.com>
Subject: Re: Main Thread ID
Date: Sun, 27 May 2007 11:56:25 -0700
Lines: 16
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: 75.82.252.126
Message-ID: <4659d495@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180292245 75.82.252.126 (27 May 2007 11:57:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail