public IReadOnlyList <ModuleInfo> EnumModules() { List <ModuleInfo> modules = new List <ModuleInfo>(8); Win32.SymEnumerateModules64(_hProcess, (name, dllBase, context) => { modules.Add(new ModuleInfo { Name = name, Base = dllBase }); return(true); }, IntPtr.Zero).ThrowIfWin32Failed(); return(modules); }