Package ghidra.app.util.bin.format.pe
Class BoundImportDescriptor
java.lang.Object
ghidra.app.util.bin.format.pe.BoundImportDescriptor
- All Implemented Interfaces:
ByteArrayConverter,StructConverter
A class to represent the
IMAGE_BOUND_IMPORT_DESCRIPTOR
data structure defined in winnt.h.
typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR {
DWORD TimeDateStamp;
WORD OffsetModuleName;
WORD NumberOfModuleForwarderRefs;
// Array of zero or more IMAGE_BOUND_FORWARDER_REF follows
} IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe size of theIMAGE_BOUND_IMPORT_DESCRIPTORin bytes.static final StringThe name to use when converting into a structure data type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoundImportForwarderRef(int index) Returns the forwarder ref at the specified indexReturns the module name of the imported DLL.shortReturns the number of IMAGE_BOUND_FORWARDER_REF structures that immediately follow this structure.shortReturns an offset to a string with the name of the imported DLL.intReturns the time/data stamp of the imported DLL.byte[]toBytes(DataConverter dc) Returns a byte array representing this implementor of this interface.Returns a structure datatype representing the contents of the implementor of this interface.toString()
-
Field Details
-
NAME
The name to use when converting into a structure data type.- See Also:
-
IMAGE_SIZEOF_BOUND_IMPORT_DESCRIPTOR
public static final int IMAGE_SIZEOF_BOUND_IMPORT_DESCRIPTORThe size of theIMAGE_BOUND_IMPORT_DESCRIPTORin bytes.- See Also:
-
-
Constructor Details
-
BoundImportDescriptor
-
-
Method Details
-
getTimeDateStamp
public int getTimeDateStamp()Returns the time/data stamp of the imported DLL.- Returns:
- the time/data stamp of the imported DLL
-
getOffsetModuleName
public short getOffsetModuleName()Returns an offset to a string with the name of the imported DLL.- Returns:
- an offset to a string with the name
-
getNumberOfModuleForwarderRefs
public short getNumberOfModuleForwarderRefs()Returns the number of IMAGE_BOUND_FORWARDER_REF structures that immediately follow this structure.- Returns:
- the number of IMAGE_BOUND_FORWARDER_REF structures that immediately follow this structure
-
getModuleName
Returns the module name of the imported DLL.- Returns:
- the module name of the imported DLL
-
getBoundImportForwarderRef
Returns the forwarder ref at the specified index- Parameters:
index- the index of the forwarder ref- Returns:
- the forwarder ref at the specified index
-
toString
-
toDataType
Description copied from interface:StructConverterReturns 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:
toDataTypein 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:
-
toBytes
Description copied from interface:ByteArrayConverterReturns a byte array representing this implementor of this interface.- Specified by:
toBytesin interfaceByteArrayConverter- Parameters:
dc- the data converter to use- Returns:
- a byte array representing this object
-