Show / Hide Table of Contents

Class IMAGE_BASE_RELOCATION

The IMAGE_BASE_RELOCATION structure holds information needed to relocate the image to another virtual address.

Inheritance
System.Object
AbstractStructure
IMAGE_BASE_RELOCATION
Inherited Members
AbstractStructure.ToString()
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 Source

IMAGE_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 Source

SizeOfBlock

SizeOfBlock-8 indicates how many TypeOffsets follow the SizeOfBlock.

Declaration
public uint SizeOfBlock { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

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[]
| Improve this Doc View Source

VirtualAddress

RVA of the relocation block.

Declaration
public uint VirtualAddress { get; set; }
Property Value
Type Description
System.UInt32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX