Struct mmap_loader::pe::PortableExecutable [−][src]
pub struct PortableExecutable<'a> { /* fields omitted */ }
Expand description
A portable executable that is all nicely wrapped up in a class
Implementations
Loads the portable executable, processing any options
Arguments
path
: The path to the executable file
context
: The resolved Nt Context
pub fn load_as_primary(
path: &str,
context: &'a NtContext<'a>,
primary: bool
) -> Result<PortableExecutable<'a>, Error>
pub fn load_as_primary(
path: &str,
context: &'a NtContext<'a>,
primary: bool
) -> Result<PortableExecutable<'a>, Error>
Loads the portable executable, processing any options
Arguments
path
: The path to the executable file
context
: The resolved Nt Context
primary
: Whether or not this module should be the primary
module, and be returned upon invocation of GetModuleHandle(null)
Returns the handle for the loaded process
Resolves imports from the specified import descriptors. This is separate because some executables have separate IATs from the NT header IATs, and it is necessary to resolve them as well
Arguments
table
: The import descriptors