Class VS_VERSION_INFO

java.lang.Object
ghidra.app.util.bin.format.pe.resource.VS_VERSION_INFO
All Implemented Interfaces:
StructConverter

public class VS_VERSION_INFO extends Object implements StructConverter
A class to represent the VS_VERSION_INFO data structure.
  • Field Details

  • Constructor Details

    • VS_VERSION_INFO

      public VS_VERSION_INFO(BinaryReader reader, int index) throws IOException
      Constructs a new VS_VERSION_INFO object.
      Parameters:
      reader - the binary reader
      index - the index where the VS_VERSION_INFO begins
      Throws:
      IOException - if an I/O error occurs
  • Method Details

    • toDataType

      public DataType toDataType() throws DuplicateNameException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

       class A {
           int foo;
           double bar;
       }
       

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      See Also:
    • getChildren

      public VS_VERSION_CHILD[] getChildren()
      Returns the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object.
      Returns:
      the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object
    • getFileFlags

      public int getFileFlags()
      Returns the file flags.
      Returns:
      the file flags
    • getFileFlagsMask

      public String getFileFlagsMask()
      Returns the file flags mask.
      Returns:
      the file flags mask
    • getFileOS

      public int getFileOS()
      Returns the file OS.
      Returns:
      the file OS
    • getFileSubtype

      public int getFileSubtype()
      Returns the file sub-type.
      Returns:
      the file sub-type
    • getFileTimestamp

      public int getFileTimestamp()
      Returns the file timestamp.
      Returns:
      the file timestamp
    • getFileType

      public int getFileType()
      Returns the file type.
      Returns:
      the file type
    • getFileVersion

      public String getFileVersion()
      Returns the file version.
      Returns:
      the file version
    • getInfo

      public String getInfo()
      Returns the info.
      Returns:
      the info
    • getProductVersion

      public String getProductVersion()
      Returns the product version.
      Returns:
      the product version
    • getSignature

      public int getSignature()
      Returns the signature.
      Returns:
      the signature
    • getStructLength

      public short getStructLength()
      Returns the structure length.
      Returns:
      the structure length
    • getStructType

      public short getStructType()
      Returns the structure type.
      Returns:
      the structure type
    • getStructVersion

      public String getStructVersion()
      Returns the structure version.
      Returns:
      the structure version
    • getValueLength

      public short getValueLength()
      Returns the value length.
      Returns:
      the value length
    • getKeys

      public String[] getKeys()
      Returns the array of keys in this version child.
      Returns:
      the array of keys in this version child
    • getValue

      public String getValue(String key)
      Returns the value for the specified key.
      Parameters:
      key - the key
      Returns:
      the value for the specified key