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. This structure is also known as the Thread Environment Block (TEB).

The TIB is officially undocumented for Windows 9x. The Windows NT series DDK includes a struct NT_TIB in winnt.h that documents the subsystem independent part. Wine includes declarations for the extended (subsystem-specific part of) TIB. Yet so many Win32 programs use these undocumented fields that they are effectively a part of the API. The first field, in particular, is directly referenced by the code produced by Microsoft's own compiler.

The TIB can be used to get a lot of information on the process without calling Win32 API. Examples include emulating GetLastError, GetVersion. Through the pointer to the PEB one can obtain access to the import tables (IAT), process startup arguments, image name, etc.

Read more about Win32 Thread Information Block:  Contents of The TIB, Accessing The TIB

Famous quotes containing the words thread, information and/or block:

    It may be the more
    That no line of her writing have I,
    Nor a thread of her hair,
    No mark of her late time as dame in her dwelling, whereby
    I may picture her there.
    Thomas Hardy (1840–1928)

    When action grows unprofitable, gather information; when information grows unprofitable, sleep.
    Ursula K. Le Guin (b. 1929)

    The chess pieces are the block alphabet which shapes thoughts; and these thoughts, although making a visual design on the chess-board, express their beauty abstractly, like a poem.... I have come to the personal conclusion that while all artists are not chess players, all chess players are artists.
    Marcel Duchamp (1887–1968)