Win32 Thread Information Block
Appearance
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 |