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

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

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

revision 607 by william, Sat Jun 8 02:13:11 2013 UTC revision 608 by william, Sat Jun 8 03:17:34 2013 UTC
# Line 18  using System.Runtime.InteropServices; Line 18  using System.Runtime.InteropServices;
18  using System.IO;  using System.IO;
19  using System.Diagnostics;  using System.Diagnostics;
20  using RomCheater.PluginFramework.Interfaces;  using RomCheater.PluginFramework.Interfaces;
21    using System.ComponentModel;
22    
23  namespace Sojaner.MemoryScanner  namespace Sojaner.MemoryScanner
24  {  {
# Line 58  namespace Sojaner.MemoryScanner Line 59  namespace Sojaner.MemoryScanner
59      }      }
60    
61      #region File Header Structures      #region File Header Structures
62        [TypeConverter(typeof(ExpandableObjectConverter))]
63      public struct IMAGE_DOS_HEADER      public struct IMAGE_DOS_HEADER
64      {      // DOS .EXE header      {      // DOS .EXE header
65          public UInt16 e_magic;              // Magic number          public UInt16 e_magic;              // Magic number
# Line 93  namespace Sojaner.MemoryScanner Line 94  namespace Sojaner.MemoryScanner
94          public UInt16 e_res2_9;             // Reserved words          public UInt16 e_res2_9;             // Reserved words
95          public UInt32 e_lfanew;             // File address of new exe header          public UInt32 e_lfanew;             // File address of new exe header
96      }      }
97        [TypeConverter(typeof(ExpandableObjectConverter))]
98      [StructLayout(LayoutKind.Sequential)]      [StructLayout(LayoutKind.Sequential)]
99      public struct IMAGE_DATA_DIRECTORY      public struct IMAGE_DATA_DIRECTORY
100      {      {
101          public UInt32 VirtualAddress;          public UInt32 VirtualAddress;
102          public UInt32 Size;          public UInt32 Size;
103      }      }
104        [TypeConverter(typeof(ExpandableObjectConverter))]
105      [StructLayout(LayoutKind.Sequential, Pack = 1)]      [StructLayout(LayoutKind.Sequential, Pack = 1)]
106      public struct IMAGE_OPTIONAL_HEADER32      public struct IMAGE_OPTIONAL_HEADER32
107      {      {
# Line 154  namespace Sojaner.MemoryScanner Line 155  namespace Sojaner.MemoryScanner
155      }      }
156    
157      [StructLayout(LayoutKind.Sequential, Pack = 1)]      [StructLayout(LayoutKind.Sequential, Pack = 1)]
158        [TypeConverter(typeof(ExpandableObjectConverter))]
159      public struct IMAGE_OPTIONAL_HEADER64      public struct IMAGE_OPTIONAL_HEADER64
160      {      {
161          public UInt16 Magic;          public UInt16 Magic;
# Line 205  namespace Sojaner.MemoryScanner Line 207  namespace Sojaner.MemoryScanner
207      }      }
208    
209      [StructLayout(LayoutKind.Sequential, Pack = 1)]      [StructLayout(LayoutKind.Sequential, Pack = 1)]
210        [TypeConverter(typeof(ExpandableObjectConverter))]
211      public struct IMAGE_FILE_HEADER      public struct IMAGE_FILE_HEADER
212      {      {
213          public MachineTypeFlags Machine;          public MachineTypeFlags Machine;
# Line 218  namespace Sojaner.MemoryScanner Line 221  namespace Sojaner.MemoryScanner
221    
222      // Grabbed the following 2 definitions from http://www.pinvoke.net/default.aspx/Structures/IMAGE_SECTION_HEADER.html      // Grabbed the following 2 definitions from http://www.pinvoke.net/default.aspx/Structures/IMAGE_SECTION_HEADER.html
223    
224        [TypeConverter(typeof(ExpandableObjectConverter))]
225      [StructLayout(LayoutKind.Explicit)]      [StructLayout(LayoutKind.Explicit)]
226      public struct IMAGE_SECTION_HEADER      public struct IMAGE_SECTION_HEADER
227      {      {

Legend:
Removed from v.607  
changed lines
  Added in v.608

  ViewVC Help
Powered by ViewVC 1.1.22