Class ImageBaseRelocation
The ImageBaseRelocation structure holds information needed to relocate the image to another virtual address.
Inherited Members
Namespace: PeNet.Header.Pe
Assembly: PeNet.dll
Syntax
public class ImageBaseRelocation : AbstractStructure
Constructors
| Edit this page View SourceImageBaseRelocation(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 SourceSizeOfBlock
SizeOfBlock-8 indicates how many TypeOffsets follow the SizeOfBlock.
Declaration
public uint SizeOfBlock { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
TypeOffsets
Array with the TypeOffsets for the relocation block.
Declaration
public ImageBaseRelocation.TypeOffset[]? TypeOffsets { get; }
Property Value
| Type | Description |
|---|---|
| TypeOffset[] |
VirtualAddress
Declaration
public uint VirtualAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |