Advanced | Help | Encyclopedia
Directory


Win32 Thread Information Block

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 Windows Versions Description
FS:[0x00] 4 Win9x and NT Current Secure Exception Handling (SEH) frame
FS:[0x04] 4 Win9x and NT Top of stack
FS:[0x08] 4 Win9x and NT Current bottom of stack
FS:[0x10] 4 NT Fiber data
FS:[0x14] 4 Win9x and NT Arbitrary data slot
FS:[0x18] 4 Win9x and NT Linear address of TIB
FS:[0x20] 4 NT Process ID
FS:[0x24] 4 NT Current thread ID
FS:[0x2C] 4 Win9x and NT Linear address of the thread local storage array
FS:[0x34] 4 NT Current error number

External links

Under The Hood – MSJ, May 1996 [1]








Links: Addme | Keyword Research | Paid Inclusion | Femail | Software | Completive Intelligence

Add URL | About Slider | FREE Slider Toolbar - Simply Amazing
Copyright © 2000-2008 Slider.com. All rights reserved.
Content is distributed under the GNU Free Documentation License.