Show / Hide Table of Contents

Class ImageBaseRelocation

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

Inheritance
object
AbstractStructure
ImageBaseRelocation
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: PeNet.Header.Pe
Assembly: PeNet.dll
Syntax
public class ImageBaseRelocation : AbstractStructure

Constructors

| Edit this page View Source

ImageBaseRelocation(IRawFile, long, uint)

Create a new ImageBaseRelocation object.

Declaration
public ImageBaseRelocation(IRawFile peFile, long offset, uint relocSize)
Parameters
Type Name Description
IRawFile peFile

A PE file.

long offset

Offset to the relocation struct in the PE file.

uint relocSize

Size of the complete relocation directory.

Exceptions
Type Condition
ArgumentOutOfRangeException

If the SizeOfBlock is bigger than the size of the Relocation Directory.

Properties

| Edit this page View Source

SizeOfBlock

SizeOfBlock-8 indicates how many TypeOffsets follow the SizeOfBlock.

Declaration
public uint SizeOfBlock { get; set; }
Property Value
Type Description
uint
| Edit this page View Source

TypeOffsets

Array with the TypeOffsets for the relocation block.

Declaration
public ImageBaseRelocation.TypeOffset[]? TypeOffsets { get; }
Property Value
Type Description
TypeOffset[]
| Edit this page View Source

VirtualAddress

Declaration
public uint VirtualAddress { get; set; }
Property Value
Type Description
uint
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX