Int32 GetModuleAddress(Process curproc, ProcessMemory curmem, string name) { var mods = curmem.GetModuleInfos(); var mod = mods.FirstOrDefault(mi => mi.baseName.ToLowerInvariant() == name); if (mod == null) { return(0); } return(mod.baseOfDll.ToInt32()); }
Int32 GetModuleAddress(Process curproc, ProcessMemory curmem, string name) { var mods = curmem.GetModuleInfos(); var mod = mods.FirstOrDefault(mi => mi.baseName.ToLowerInvariant() == name); if (mod == null) return 0; return mod.baseOfDll.ToInt32(); }