Class WindowsHeader


  • public class WindowsHeader
    extends java.lang.Object
    A class to represent and parse the Windows new-style executable (NE) header.
    • 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 reader
        baseAddr - the image base address
        index - 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