Class PELoader
- Namespace
- Echo.Platforms.AsmResolver.Emulation
- Assembly
- Echo.Platforms.AsmResolver.dll
Provides a mechanism for mapping portable executable files into virtual memory.
public class PELoader
- Inheritance
-
PELoader
- Inherited Members
Constructors
PELoader(VirtualMemory)
Creates a new instance of a PE loader.
public PELoader(VirtualMemory memory)
Parameters
memoryVirtualMemoryThe virtual memory to map the executables into.
Methods
MapModule(ModuleDefinition)
Maps a module into memory.
public long MapModule(ModuleDefinition module)
Parameters
moduleModuleDefinitionThe module to map.
Returns
- long
The new base address of the PE file.
Exceptions
- ArgumentException
Occurs when the module does not have an underlying PE image or file.
MapPE(PEFile)
Maps all sections of the provided PE file into memory.
public long MapPE(PEFile file)
Parameters
filePEFileThe file to map.
Returns
- long
The new base address of the PE file.