DosGetInfoBlocks returns the address of the TIB of the current thread. This function also returns the address of the PIB of the current process.
Several items of per-thread information are kept in a read/write area of the process address space called the Thread Information Block, or TIB. You can access this information by calling DosGetInfoBlocks.
TIB2 contains system-specific thread information.
Several items of per-process information are kept in a read/write area of the process address space called the Process Information Block, or PIB. You can access this information by calling DosGetInfoBlocks.