/[RomCheater]/trunk/RomCheater/Docking/FloatingMemoryView.cs
ViewVC logotype

Annotation of /trunk/RomCheater/Docking/FloatingMemoryView.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 471 - (hide annotations) (download)
Mon Jun 3 07:13:44 2013 UTC (8 years ago) by william
File size: 2297 byte(s)
+ pass process informatin by using the process's PID, instead of passing the process as a reference

1 william 196 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Linq;
7     using System.Text;
8     using System.Windows.Forms;
9     using WeifenLuo.WinFormsUI.Docking;
10     using RomCheater.PluginFramework.Interfaces;
11     using RomCheater.PluginFramework.Events;
12     using System.Diagnostics;
13 william 323 using Sojaner.MemoryScanner;
14 william 196
15     namespace RomCheater.Docking
16     {
17 william 243 public partial class FloatingMemoryView : DockContent,
18     IAcceptsPlugin<IConfigPlugin>,
19 william 471 IAcceptsProcess,
20 william 287 IAcceptsProcessAndConfig,
21     IBrowseMemoryRegion,
22 william 323 IAcceptsMemoryRange,
23     IAcceptPEData
24 william 196 {
25 william 198 public FloatingMemoryView() {
26     InitializeComponent();
27     this.AcceptedPlugin = null;
28 william 471 this.ProcessPID = 0;
29 william 201 //this.MemoryStart = uint.MinValue;
30     //this.MemorySize = uint.MaxValue;
31 william 198 }
32 william 196 public FloatingMemoryView(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
33 william 471 public FloatingMemoryView(IConfigPlugin config, int pid) : this() { this.AcceptedPlugin = config; this.ProcessPID = pid; }
34 william 237 #region IAcceptsProcess<Process> Members
35 william 471 public int ProcessPID { get { return MemView.ProcessPID; } set { MemView.ProcessPID = value; } }
36 william 196 #endregion
37     #region IAcceptsPlugin<IConfigPlugin> Members
38 william 198 public IConfigPlugin AcceptedPlugin { get { return MemView.AcceptedPlugin; } set { MemView.AcceptedPlugin = value; } }
39 william 196 #endregion
40 william 206 #region IAcceptsMemoryRange members
41 william 378 public uint MemoryRangeStart { get { return MemView.MemoryRangeStart; } set { MemView.MemoryRangeStart = value; } } // set is empty in MemView, placed here incase it changes
42 william 287 public uint MemoryRangeSize { get { return MemView.MemoryRangeSize; } set { MemView.MemoryRangeSize = value; } } // set is empty in MemView, placed here incase it changes
43 william 206 #endregion
44    
45 william 276 #region IBrowseMemoryRegion
46 william 378 public bool BrowseMemoryRegion(uint MemoryRegion) { return MemView.BrowseMemoryRegion(MemoryRegion); }
47 william 206 #endregion
48 william 323
49     #region IAcceptPEData members
50 william 357 public void SetPEViewerData(IPEDData peData) { MemView.SetPEViewerData(peData); }
51 william 323 #endregion
52 william 196 }
53     }

  ViewVC Help
Powered by ViewVC 1.1.22