Class ExportDataDirectory

  • All Implemented Interfaces:
    PeMarkupable, StructConverter

    public class ExportDataDirectory
    extends DataDirectory
    A class to represent the IMAGE_EXPORT_DIRECTORY data structure defined in winnt.h.
     typedef struct _IMAGE_EXPORT_DIRECTORY {
         DWORD   Characteristics;
         DWORD   TimeDateStamp;
         WORD    MajorVersion;
         WORD    MinorVersion;
         DWORD   Name;
         DWORD   Base;
         DWORD   NumberOfFunctions;
         DWORD   NumberOfNames;
         DWORD   AddressOfFunctions;     // RVA from base of image
         DWORD   AddressOfNames;         // RVA from base of image
         DWORD   AddressOfNameOrdinals;  // RVA from base of image
     };
     
    • Field Detail

      • IMAGE_SIZEOF_EXPORT_DIRECTORY

        public static final int IMAGE_SIZEOF_EXPORT_DIRECTORY
        The size of the IMAGE_EXPORT_DIRECTORY in bytes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExportDataDirectory

        public ExportDataDirectory()
        DO NOT USE THIS CONSTRUCTOR, USE create*(GenericFactory ...) FACTORY METHODS INSTEAD.
    • Method Detail

      • getExports

        public ExportInfo[] getExports()
        Returns an array of the exports defined in this export data directory.
        Returns:
        an array of the exports defined in this export data directory
      • getAddressOfFunctions

        public int getAddressOfFunctions()
      • getAddressOfNames

        public int getAddressOfNames()
      • getAddressOfNameOrdinals

        public int getAddressOfNameOrdinals()
      • getNumberOfFunctions

        public int getNumberOfFunctions()
      • getNumberOfNames

        public int getNumberOfNames()
      • getName

        public int getName()
      • getBase

        public int getBase()
      • getCharacteristics

        public int getCharacteristics()
      • getTimeDateStamp

        public int getTimeDateStamp()
      • getMajorVersion

        public short getMajorVersion()
      • getMinorVersion

        public short getMinorVersion()
      • getExportName

        public java.lang.String getExportName()
      • parse

        public boolean parse()
                      throws java.io.IOException
        Description copied from class: DataDirectory
        Parses this data directory.
        Specified by:
        parse in class DataDirectory
        Returns:
        True if parsing completed successfully; otherwise, false.
        Throws:
        java.io.IOException - If there was an IO problem while parsing.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DataDirectory
        See Also:
        Object.toString()