GetModuleInfos() public method

public GetModuleInfos ( ) : IEnumerable
return IEnumerable
コード例 #1
0
        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());
        }
コード例 #2
0
 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();
 }