Package ghidra.app.util.bin.format.ne
Class WindowsHeader
- java.lang.Object
-
- ghidra.app.util.bin.format.ne.WindowsHeader
-
public class WindowsHeader extends java.lang.ObjectA class to represent and parse the Windows new-style executable (NE) header.
-
-
Field Summary
Fields Modifier and Type Field Description static shortIMAGE_NE_SIGNATUREThe magic number for Windows NE files.
-
Constructor Summary
Constructors Constructor Description WindowsHeader(FactoryBundledWithBinaryReader reader, SegmentedAddress baseAddr, short index)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntryTablegetEntryTable()Returns the entry table.ImportedNameTablegetImportedNameTable()Returns the imported name table.InformationBlockgetInformationBlock()Returns the information block.ModuleReferenceTablegetModuleReferenceTable()Returns the module reference table.NonResidentNameTablegetNonResidentNameTable()Returns the non-resident name table.java.lang.StringgetProcessorName()Returns the processor name.ResidentNameTablegetResidentNameTable()Returns the resident name table.ResourceTablegetResourceTable()Returns the resource table.SegmentTablegetSegmentTable()Returns the segment table.
-
-
-
Field Detail
-
IMAGE_NE_SIGNATURE
public static final short IMAGE_NE_SIGNATURE
The magic number for Windows NE files.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WindowsHeader
public WindowsHeader(FactoryBundledWithBinaryReader reader, SegmentedAddress baseAddr, short index) throws InvalidWindowsHeaderException, java.io.IOException
Constructor- Parameters:
reader- the binary readerbaseAddr- the image base addressindex- the index where the windows headers begins- Throws:
InvalidWindowsHeaderException- if the bytes defined in the binary reader at the specified index do not constitute a valid windows header.java.io.IOException- for problems reading the header bytes
-
-
Method Detail
-
getProcessorName
public java.lang.String getProcessorName()
Returns the processor name.- Returns:
- the processor name
-
getInformationBlock
public InformationBlock getInformationBlock()
Returns the information block.- Returns:
- the information block
-
getSegmentTable
public SegmentTable getSegmentTable()
Returns the segment table.- Returns:
- the segment table
-
getResourceTable
public ResourceTable getResourceTable()
Returns the resource table.- Returns:
- the resource table
-
getResidentNameTable
public ResidentNameTable getResidentNameTable()
Returns the resident name table.- Returns:
- the resident name table
-
getModuleReferenceTable
public ModuleReferenceTable getModuleReferenceTable()
Returns the module reference table.- Returns:
- the module reference table
-
getImportedNameTable
public ImportedNameTable getImportedNameTable()
Returns the imported name table.- Returns:
- the imported name table
-
getEntryTable
public EntryTable getEntryTable()
Returns the entry table.- Returns:
- the entry table
-
getNonResidentNameTable
public NonResidentNameTable getNonResidentNameTable()
Returns the non-resident name table.- Returns:
- the non-resident name table
-
-