Package ghidra.app.util.bin.format.ne
Class WindowsHeader
java.lang.Object
ghidra.app.util.bin.format.ne.WindowsHeader
A class to represent and parse the
Windows new-style executable (NE) header.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
The magic number for Windows NE files. -
Constructor Summary
ConstructorDescriptionWindowsHeader
(BinaryReader reader, SegmentedAddress baseAddr, short index) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the entry table.Returns the imported name table.Returns the information block.Returns the module reference table.Returns the non-resident name table.Returns the processor name.Returns the resident name table.Returns the resource table.Returns the segment table.
-
Field Details
-
IMAGE_NE_SIGNATURE
public static final short IMAGE_NE_SIGNATUREThe magic number for Windows NE files.- See Also:
-
-
Constructor Details
-
WindowsHeader
public WindowsHeader(BinaryReader reader, SegmentedAddress baseAddr, short index) throws InvalidWindowsHeaderException, 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.IOException
- for problems reading the header bytes
-
-
Method Details
-
getProcessorName
Returns the processor name.- Returns:
- the processor name
-
getInformationBlock
Returns the information block.- Returns:
- the information block
-
getSegmentTable
Returns the segment table.- Returns:
- the segment table
-
getResourceTable
Returns the resource table.- Returns:
- the resource table
-
getResidentNameTable
Returns the resident name table.- Returns:
- the resident name table
-
getModuleReferenceTable
Returns the module reference table.- Returns:
- the module reference table
-
getImportedNameTable
Returns the imported name table.- Returns:
- the imported name table
-
getEntryTable
Returns the entry table.- Returns:
- the entry table
-
getNonResidentNameTable
Returns the non-resident name table.- Returns:
- the non-resident name table
-