memexec 0.2.0

A library for loading and executing PE (Portable Executable) from memory without ever touching the disk
Documentation
#[derive(Debug)]
pub enum Error {
    InvalidCString,
    LoadLibararyFail,
    GetProcAddressFail,
    NtAllocVmErr(i32),
    NtProtectVmErr(i32),
    InvalidUtf8String,
    MismatchedArch,
    MismatchedLoader,
    NoEntryPoint,
    UnsupportedDotNetExecutable,
    InvalidProcDescString,
}

pub type Result<T> = std::result::Result<T, Error>;

impl std::convert::From<std::str::Utf8Error> for Error {
    fn from(_: std::str::Utf8Error) -> Self {
        Error::InvalidUtf8String
    }
}

impl std::convert::From<std::num::ParseIntError> for Error {
    fn from(_: std::num::ParseIntError) -> Self {
        Error::InvalidProcDescString
    }
}