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:
“I taught school in the early days of my manhood and I think I know something about mothers. There is a thread of aspiration that runs strong in them. It is the fiber that has formed the most unselfish creatures who inhabit this earth. They want three things only; for their children to be fed, to be healthy, and to make the most of themselves.”
—Lyndon Baines Johnson (19081973)
“The real, then, is that which, sooner or later, information and reasoning would finally result in, and which is therefore independent of the vagaries of me and you. Thus, the very origin of the conception of reality shows that this conception essentially involves the notion of a COMMUNITY, without definite limits, and capable of a definite increase of knowledge.”
—Charles Sanders Peirce (18391914)
“Only he who can view his own past as an abortion sprung from compulsion and need can use it to full advantage in the present. For what one has lived is at best comparable to a beautiful statue which has had all its limbs knocked off in transit, and now yields nothing but the precious block out of which the image of ones future must be hewn.”
—Walter Benjamin (18921940)