[−][src]Function memflow_win32_ffi::win32::process::process_main_module_info
#[no_mangle]pub unsafe extern "C" fn process_main_module_info(
process: &mut Win32Process
) -> Option<&'static mut Win32ModuleInfo>
Retrieve the main module of the process
This function searches for a module with a base address
matching the section_base address from the ProcessInfo structure.
It then returns a reference to a newly allocated
Win32ModuleInfo
object, if a module was found (null otherwise).
The reference later needs to be freed with module_info_free
Safety
process
must be a valid Win32Process pointer.