Пример #1
0
 public NativeModule(SafeMemoryHandle hProcess, IntPtr hModule)
 {
     BaseAddress = hModule;
     FileName    = ModuleHelper.GetModuleFileName(hProcess, hModule);
     ModuleName  = string.IsNullOrEmpty(FileName) ? string.Empty : Path.GetFileName(FileName);
     if (ModuleHelper.GetModuleInformation(hProcess, hModule, out var info))
     {
         EntryPointAddress = info.EntryPoint;
         ModuleMemorySize  = (int)info.SizeOfImage.ToInt64();
     }
 }