public static MemoryLayout EnableAccessToMemoryOfProcess(Process ProcessToAccess) { MemoryLayout OriginalMemoryLayout = ProcessManager.CurrentProcess.TheMemoryLayout; MemoryLayout NewMemoryLayout = ProcessManager.CurrentProcess.TheMemoryLayout.Merge(ProcessToAccess.TheMemoryLayout); ProcessManager.CurrentProcess.TheMemoryLayout = NewMemoryLayout; NewMemoryLayout.Load(ProcessManager.CurrentProcess.UserMode); return(OriginalMemoryLayout); }
public virtual void LoadMemLayout() { TheMemoryLayout.Load(UserMode); }
public static void DisableAccessToMemoryOfProcess(MemoryLayout OriginalMemoryLayout) { ProcessManager.CurrentProcess.TheMemoryLayout = OriginalMemoryLayout; OriginalMemoryLayout.Load(ProcessManager.CurrentProcess.UserMode); }