C# Class Microsoft.HockeyApp.Extensibility.Implementation.PEImageReader

This class will read some basic information from a loaded native binary.
ファイルを表示 Open project: bitstadium/HockeySDK-Windows

Public Methods

Method Description
PEImageReader ( IntPtr imageBase ) : System

Initializes a new instance of the PEImageReader class.

Parse ( ) : CodeViewDebugData

Parse the image file and extract the code view debug data information.

Private Methods

Method Description
GetCodeViewDebugData ( DebugDirectory debugDirectories, IntPtr endAddress ) : CodeViewDebugData

Reads the code view debug data from the specified set of debug directories.

ReadAtOffset ( byte fileBytes, int offset ) : void

Reads a set of bytes from the image pointer at the specified offset.

ReadAtRelativeVirtualAddress ( int rva, int size ) : BinaryReader

Returns a binary reader object at the specified relative virtual address and spanning size.

ReadDebugDirectories ( DirectoryEntry debugDirectoryEntry ) : DebugDirectory[]

Reads all directory entries from the passed in debug directory entry.

ReadDebugDirectoryEntry ( int optionalHeaderDirectoryEntriesOffset ) : DirectoryEntry

Read the debug entry at the specified offset.

ReadDwordAtFileOffset ( int offset ) : int

Reads a dword value (32 bits) from the specified offset.

ReadNullTerminatedUTF8String ( BinaryReader reader ) : string

Read a null terminated UTF-8 string.

ReadWordAtFileOffset ( int offset ) : ushort

Reads an unsigned short value (16 bits) from the specified offset.

Method Details

PEImageReader() public method

Initializes a new instance of the PEImageReader class.
public PEImageReader ( IntPtr imageBase ) : System
imageBase System.IntPtr
return System

Parse() public method

Parse the image file and extract the code view debug data information.
public Parse ( ) : CodeViewDebugData
return CodeViewDebugData