Class IMAGE_BASE_RELOCATION
The IMAGE_BASE_RELOCATION structure holds information needed to relocate the image to another virtual address.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: PeNet.Structures
Assembly: PeNet.dll
Syntax
public class IMAGE_BASE_RELOCATION : AbstractStructure
Constructors
| Improve this Doc View SourceIMAGE_BASE_RELOCATION(Byte[], UInt32, UInt32)
Create a new IMAGE_BASE_RELOCATION object.
Declaration
public IMAGE_BASE_RELOCATION(byte[] buff, uint offset, uint relocSize)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff | PE binary as byte array. |
System.UInt32 | offset | Offset to the relocation struct in the binary. |
System.UInt32 | relocSize | Size of the complete relocation directory. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | If the SizeOfBlock is bigger than the size of the Relocation Directory. |
Properties
| Improve this Doc View SourceSizeOfBlock
SizeOfBlock-8 indicates how many TypeOffsets follow the SizeOfBlock.
Declaration
public uint SizeOfBlock { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
TypeOffsets
Array with the TypeOffsets for the relocation block.
Declaration
public IMAGE_BASE_RELOCATION.TypeOffset[] TypeOffsets { get; }
Property Value
Type | Description |
---|---|
IMAGE_BASE_RELOCATION.TypeOffset[] |
VirtualAddress
RVA of the relocation block.
Declaration
public uint VirtualAddress { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |