Class VS_VERSION_INFO
java.lang.Object
ghidra.app.util.bin.format.pe.resource.VS_VERSION_INFO
- All Implemented Interfaces:
StructConverter
A class to represent the VS_VERSION_INFO data structure.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVS_VERSION_INFO
(BinaryReader reader, int index) Constructs a new VS_VERSION_INFO object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the array of VS_VERSION_CHILD defined in this VS_VERSION_INFO object.int
Returns the file flags.Returns the file flags mask.int
Returns the file OS.int
Returns the file sub-type.int
Returns the file timestamp.int
Returns the file type.Returns the file version.getInfo()
Returns the info.String[]
getKeys()
Returns the array of keys in this version child.Returns the product version.int
Returns the signature.short
Returns the structure length.short
Returns the structure type.Returns the structure version.Returns the value for the specified key.short
Returns the value length.Returns a structure datatype representing the contents of the implementor of this interface.
-
Field Details
-
NAME
- See Also:
-
SIZEOF
public static final int SIZEOF- See Also:
-
-
Constructor Details
-
VS_VERSION_INFO
Constructs a new VS_VERSION_INFO object.- Parameters:
reader
- the binary readerindex
- the index where the VS_VERSION_INFO begins- Throws:
IOException
- if an I/O error occurs
-
-
Method Details
-
toDataType
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 interfaceStructConverter
- 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
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
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
Returns the file version.- Returns:
- the file version
-
getInfo
Returns the info.- Returns:
- the info
-
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
Returns the structure version.- Returns:
- the structure version
-
getValueLength
public short getValueLength()Returns the value length.- Returns:
- the value length
-
getKeys
Returns the array of keys in this version child.- Returns:
- the array of keys in this version child
-
getValue
Returns the value for the specified key.- Parameters:
key
- the key- Returns:
- the value for the specified key
-