Skip to main content

init

Function init 

Source
pub fn init(module_name: &str) -> Result<()>
Expand description

Resolves the Mono API by locating exports in the named module.

The module must already be loaded in the current process — this function calls GetModuleHandleW, not LoadLibraryW. Call this once, as early as possible in your injected code, before any thread attaches or any handle is created.

§Errors