From dbe6aa6384e6429988dc8bc15565a5b20c3986cb Mon Sep 17 00:00:00 2001 From: Lloyd Kinsella Date: Fri, 15 Jan 2016 01:28:53 +0000 Subject: [PATCH] Removed some debugging code and moved ExportItem class up top. --- Src/Workshell.PE/Exports/ExportContent.cs | 51 ++++++++++++++++------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/Src/Workshell.PE/Exports/ExportContent.cs b/Src/Workshell.PE/Exports/ExportContent.cs index 80a2dd0..e77b761 100644 --- a/Src/Workshell.PE/Exports/ExportContent.cs +++ b/Src/Workshell.PE/Exports/ExportContent.cs @@ -117,6 +117,41 @@ public string ForwardName public class ExportContent : SectionContent, ILocationSupport, IEnumerable { + class ExportItem + { + + public int Index + { + get; + set; + } + + public uint FunctionAddress + { + get; + set; + } + + public int NameIndex + { + get; + set; + } + + public uint NameAddress + { + get; + set; + } + + public int Ordinal + { + get; + set; + } + + } + private StreamLocation location; private List exports; private ExportDirectory directory; @@ -237,22 +272,6 @@ private void LoadNameTable(Stream stream) name_table = new GenericLocationSupport(offset,size,this); } - class ExportItem - { - - public int Index; - public uint FunctionAddress; - public int NameIndex; - public uint NameAddress; - public int Ordinal; - - public override string ToString() - { - return String.Format("Address: 0x{0:X8}, Index: {1:D4}, Ordinal: {2:D4}, Has Name: {3}",FunctionAddress,Index,Ordinal,NameIndex != -1); - } - - } - private void LoadExports(Stream stream) { uint[] function_addresses = directory.GetFunctionAddresses();