ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/Win32/Sojaner.MemoryScanner/PEReader.cs
(Generate patch)

Comparing trunk/Win32/Sojaner.MemoryScanner/PEReader.cs (file contents):
Revision 322 by william, Tue Jun 5 23:20:12 2012 UTC vs.
Revision 323 by william, Thu Jun 7 16:33:41 2012 UTC

# Line 8 | Line 8 | using RomCheater.Logging;
8   using System.Runtime.InteropServices;
9   using System.Diagnostics;
10   using System.ComponentModel;
11 + using RomCheater.PluginFramework.Events;
12 + using Sojaner.MemoryScanner;
13  
14 + namespace RomCheater.PluginFramework.Events
15 + {
16 +    public interface IAcceptPEData
17 +    {
18 +        void SetPEViewerData(PEReader.PEData peData);
19 +    }
20 +    public interface IAcceptsPEData
21 +    {
22 +        event BaseEventHandler<PEViewerDataUpdatedEvent> OnPEDataUpdated;
23 +    }
24 +    public interface IPEViewerDataUpdatedEvent
25 +    {
26 +        PEReader.PEData PEData { get; }
27 +    }
28 +    public class PEViewerDataUpdatedEvent : BaseEventArgs, IPEViewerDataUpdatedEvent
29 +    {
30 +        public PEViewerDataUpdatedEvent() : this(new PEReader.PEData()) { }
31 +        public PEViewerDataUpdatedEvent(object sender) : this(sender, new PEReader.PEData()) { }
32 +        public PEViewerDataUpdatedEvent(PEReader.PEData peData) : base() { this.PEData = peData; }
33 +        public PEViewerDataUpdatedEvent(object sender, PEReader.PEData peData) : base(sender) { this.PEData = peData; }
34 +        #region IPEViewerDataUpdatedEvent members
35 +        public PEReader.PEData PEData { get; private set; }
36 +        #endregion
37 +    }
38 + }
39   namespace Sojaner.MemoryScanner
40   {
41      public class PEReader
# Line 461 | Line 488 | namespace Sojaner.MemoryScanner
488          #endregion
489  
490  
491 <        public PEData GetData
491 >        public PEData GetPEData
492          {
493              get
494              {
# Line 469 | Line 496 | namespace Sojaner.MemoryScanner
496                  return _data;
497              }
498          }
499 <        #region t
499 >        #region PEData
500          public class PEData
501          {
502              public PEData() : this(new IMAGE_DOS_HEADER(), new IMAGE_NT_HEADERS(), new IMAGE_SECTION_HEADER[] { }) { }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines