public bool Init(ulong address) { Address = address; if (!_sos.GetModuleData(Address, out _moduleData)) { return(false); } using ClrDataModule? dataModule = _sos.GetClrDataModule(address); if (dataModule != null && dataModule.GetModuleData(out ExtendedModuleData data)) { IsFlatLayout = data.IsFlatLayout != 0; IsDynamic = data.IsDynamic != 0; Size = data.LoadedPESize; } else { IsFlatLayout = false; IsDynamic = false; Size = 0; } SimpleName = dataModule?.GetName(); FileName = dataModule?.GetFileName(); return(true); }
public bool Init(ulong address) { Address = address; if (!_sos.GetModuleData(Address, out _moduleData)) { return(false); } using var dataModule = _sos.GetClrDataModule(address); if (dataModule != null && dataModule.GetModuleData(out var data)) { IsFlatLayout = data.IsFlatLayout != 0; Size = data.LoadedPESize; } else { IsFlatLayout = false; Size = 0; } if (dataModule != null) { SimpleName = dataModule.GetName(); } else { SimpleName = null; } return(true); }
public bool Init(ulong address) { Address = address; if (!_sos.GetModuleData(Address, out _moduleData)) { return(false); } using ClrDataModule? dataModule = _sos.GetClrDataModule(address); if (dataModule != null && dataModule.GetModuleData(out ExtendedModuleData data)) { IsFileLayout = data.IsFileLayout != 0; Size = data.LoadedPESize; } else { IsFileLayout = false; Size = 0; } return(true); }