Skip to content

Commit

Permalink
Sealed more classes and added Load Configuration content support.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkinsella committed Feb 10, 2016
1 parent dc240b6 commit da63c98
Show file tree
Hide file tree
Showing 15 changed files with 1,248 additions and 514 deletions.
8 changes: 5 additions & 3 deletions Src/Demo Application/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

Expand All @@ -15,13 +16,14 @@ class Program
static void Main(string[] args)
{
//string file_name = Environment.GetCommandLineArgs()[0];
//string file_name = Assembly.GetEntryAssembly().Location;
//string file_name = @"C:\Windows\SysWOW64\kernel32.dll";
string file_name = @"C:\Windows\System32\kernel32.dll";
//string file_name = @"C:\Windows\System32\kernel32.dll";
//string file_name = @"C:\Windows\SysWOW64\shell32.dll";
//string file_name = @"C:\Windows\SysWOW64\xpsservices.dll";
//string file_name = @"c:\windows\system32\advapi32.dll";
//string file_name = @"P:\Workshell\dotNET Dependency Walker\Bin\Release\netdepends.exe";
//string file_name = @"C:\Windows\System32\shell32.dll";
string file_name = @"C:\Windows\System32\shell32.dll";
//string file_name = @"C:\Users\Lloyd\Desktop\PE Related\Tools\PeInternals\x64\PeInternals.exe";
string error_message;

Expand All @@ -41,7 +43,7 @@ static void Main(string[] args)
if (content == null)
continue;

if (content.DataDirectory.DirectoryType == DataDirectoryType.Debug)
if (content.DataDirectory.DirectoryType == DataDirectoryType.LoadConfigTable)
{

}
Expand Down
2 changes: 1 addition & 1 deletion Src/Workshell.PE/Content/Debug/DebugContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Workshell.PE
{

public class DebugContent : DataDirectoryContent
public sealed class DebugContent : DataDirectoryContent
{

private ulong image_base;
Expand Down
2 changes: 1 addition & 1 deletion Src/Workshell.PE/Content/Exports/ExportTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Workshell.PE
{

public class ExportTable<T> : IEnumerable<T>, ISupportsLocation
public class ExportTable<T> : IEnumerable<T>, IReadOnlyCollection<T>, ISupportsLocation
{

private ExportTableContent content;
Expand Down
2 changes: 1 addition & 1 deletion Src/Workshell.PE/Content/Exports/Exports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public string ForwardName

}

public class Exports : IEnumerable<Export>
public class Exports : IEnumerable<Export>, IReadOnlyCollection<Export>
{

private ExportTableContent content;
Expand Down
Loading

0 comments on commit da63c98

Please sign in to comment.