Name

MainThreadID Variable

Syntax

var MainThreadID: LongWord;

Description

The MainThreadID variable stores the Windows thread ID for the application’s main thread. Use MainThreadID if you need to send a message to the main thread, for example.

See Also

BeginThread Function, IsMultiThread Variable

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.