Table of Contents

Class ImportedModule

Namespace
AsmResolver.PE.Imports
Assembly
AsmResolver.PE.dll

Represents a single module that was imported into a portable executable as part of the imports data directory. Each instance represents one entry in the imports directory.

public class ImportedModule
Inheritance
ImportedModule
Derived
Inherited Members

Constructors

ImportedModule()

Creates a new empty module import.

protected ImportedModule()

ImportedModule(string)

Creates a new module import.

public ImportedModule(string name)

Parameters

name string

The name of the module to import.

Properties

ForwarderChain

Gets or sets the index of the first member that is a forwarder.

public uint ForwarderChain { get; set; }

Property Value

uint

Name

Gets or sets the name of the module that was imported.

public string? Name { get; set; }

Property Value

string

Symbols

Gets a collection of members from the module that were imported.

public IList<ImportedSymbol> Symbols { get; }

Property Value

IList<ImportedSymbol>

TimeDateStamp

Gets or sets the time stamp that the module was loaded into memory.

public uint TimeDateStamp { get; set; }

Property Value

uint

Remarks

This field is always 0 if the PE was read from the disk.

Methods

FromReader(PEReaderContext, ref BinaryStreamReader)

Reads a single module import entry from an input stream.

public static ImportedModule? FromReader(PEReaderContext context, ref BinaryStreamReader reader)

Parameters

context PEReaderContext

The reader context.

reader BinaryStreamReader

The input stream to read from.

Returns

ImportedModule

GetSymbols()

Obtains the collection of members that were imported.

protected virtual IList<ImportedSymbol> GetSymbols()

Returns

IList<ImportedSymbol>

The members list.

Remarks

This method is called to initialize the value of Symbols property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.