/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/PEReader.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/PEReader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/Sojaner.MemoryScanner/PEReader.cs	2012/06/05 23:20:12	322
+++ trunk/Win32/Sojaner.MemoryScanner/PEReader.cs	2012/06/07 16:33:41	323
@@ -8,7 +8,34 @@
 using System.Runtime.InteropServices;
 using System.Diagnostics;
 using System.ComponentModel;
+using RomCheater.PluginFramework.Events;
+using Sojaner.MemoryScanner;
 
+namespace RomCheater.PluginFramework.Events
+{
+    public interface IAcceptPEData
+    {
+        void SetPEViewerData(PEReader.PEData peData);
+    }
+    public interface IAcceptsPEData
+    {
+        event BaseEventHandler<PEViewerDataUpdatedEvent> OnPEDataUpdated;
+    }
+    public interface IPEViewerDataUpdatedEvent
+    {
+        PEReader.PEData PEData { get; }
+    }
+    public class PEViewerDataUpdatedEvent : BaseEventArgs, IPEViewerDataUpdatedEvent
+    {
+        public PEViewerDataUpdatedEvent() : this(new PEReader.PEData()) { }
+        public PEViewerDataUpdatedEvent(object sender) : this(sender, new PEReader.PEData()) { }
+        public PEViewerDataUpdatedEvent(PEReader.PEData peData) : base() { this.PEData = peData; }
+        public PEViewerDataUpdatedEvent(object sender, PEReader.PEData peData) : base(sender) { this.PEData = peData; }
+        #region IPEViewerDataUpdatedEvent members
+        public PEReader.PEData PEData { get; private set; }
+        #endregion
+    }
+}
 namespace Sojaner.MemoryScanner
 {
     public class PEReader
@@ -461,7 +488,7 @@
         #endregion
 
 
-        public PEData GetData
+        public PEData GetPEData
         {
             get 
             {
@@ -469,7 +496,7 @@
                 return _data;
             }
         }
-        #region t
+        #region PEData
         public class PEData
         {
             public PEData() : this(new IMAGE_DOS_HEADER(), new IMAGE_NT_HEADERS(), new IMAGE_SECTION_HEADER[] { }) { }

 

  ViewVC Help
Powered by ViewVC 1.1.22