Class ThreadEnvironmentBlock

java.lang.Object
ghidra.app.util.datatype.microsoft.ThreadEnvironmentBlock

public class ThreadEnvironmentBlock extends Object
Class for creating a Ghidra memory block representing the TEB: Thread Environment Block. The class must be instantiated with the Program and the Windows OS version to control details of the TEB layout. The user must call setAddress to provide the starting address of the block to create. Then they must call one of - createBlockAndStructure or - createBlocksAndSymbols The TEB can be represented either by a single structure overlaying the block (createBlockAndStructure), or as a series of symbols and primitive data-types (createBlocksAndSymbols). Finally the user should call setRegisterValue. The TEB is accessed either through the FS segment (32-bit) or GS segment (64-bit), so this method sets a Register value for one these over the program.