Jump to content

Win32 Thread Information Block

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bletch (talk | contribs) at 17:41, 11 March 2005 (Creating article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computing, the Win32 Thread Information Block (TIB) is a data structure in Win32 on x86 that stores info about the currently running thread. While officially undocumented, many Win32 programs use it so it is effectively a part of the API.

The TIB can be accessed as an offset of segment register FS.


Position Length Description
FS:[0x00] 4 Current Secure Exception Handling (SEH) frame
FS:[0x14] 4 Thread name
FS:[0x18] 4 Linear address of TIB
FS:[0x24] 4 Current thread ID
FS:[0x2C] 4 Linear address of the thread local storage array