Skip to content

Commit

Permalink
Removed some debugging code and moved ExportItem class up top.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkinsella committed Jan 15, 2016
1 parent ebbe398 commit dbe6aa6
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions Src/Workshell.PE/Exports/ExportContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,41 @@ public string ForwardName
public class ExportContent : SectionContent, ILocationSupport, IEnumerable<Export>
{

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<Export> exports;
private ExportDirectory directory;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit dbe6aa6

Please sign in to comment.