/[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

revision 322 by william, Tue Jun 5 23:20:12 2012 UTC revision 323 by william, Thu Jun 7 16:33:41 2012 UTC
# Line 8  using RomCheater.Logging; Line 8  using RomCheater.Logging;
8  using System.Runtime.InteropServices;  using System.Runtime.InteropServices;
9  using System.Diagnostics;  using System.Diagnostics;
10  using System.ComponentModel;  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  namespace Sojaner.MemoryScanner
40  {  {
41      public class PEReader      public class PEReader
# Line 461  namespace Sojaner.MemoryScanner Line 488  namespace Sojaner.MemoryScanner
488          #endregion          #endregion
489    
490    
491          public PEData GetData          public PEData GetPEData
492          {          {
493              get              get
494              {              {
# Line 469  namespace Sojaner.MemoryScanner Line 496  namespace Sojaner.MemoryScanner
496                  return _data;                  return _data;
497              }              }
498          }          }
499          #region t          #region PEData
500          public class PEData          public class PEData
501          {          {
502              public PEData() : this(new IMAGE_DOS_HEADER(), new IMAGE_NT_HEADERS(), new IMAGE_SECTION_HEADER[] { }) { }              public PEData() : this(new IMAGE_DOS_HEADER(), new IMAGE_NT_HEADERS(), new IMAGE_SECTION_HEADER[] { }) { }

Legend:
Removed from v.322  
changed lines
  Added in v.323

  ViewVC Help
Powered by ViewVC 1.1.22