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
MonoError::DllNotFoundif no module withmodule_nameis currently loaded.MonoError::FnNotFoundif a required export is missing from the module (unexpected for standard Mono builds).MonoError::AlreadyInitializedifinithas already been called successfully.