pub trait GetProcAddress<'a, T>: Pe<'a> {
fn get_export(self, name: T) -> Result<Export<'a>>;
fn get_proc_address(self, name: T) -> Result<Va> { ... }
}
Expand description
Convenient way to get an exported address.
Required Methods
sourcefn get_export(self, name: T) -> Result<Export<'a>>
fn get_export(self, name: T) -> Result<Export<'a>>
Convenient method to get an exported function.
Note that calling this method many times is less efficient than caching a By
instance, such is the trade-off for convenience.
Provided Methods
sourcefn get_proc_address(self, name: T) -> Result<Va>
fn get_proc_address(self, name: T) -> Result<Va>
Convenient method to get the address of an exported function.
Note that this method does not support forwarded exports and will return Err(Null)
instead.
Note that calling this method many times is less efficient than caching a By
instance, such is the trade-off for convenience.