Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

PeFile Class Reference

#include <PeFile.h>

Inheritance diagram for PeFile:

Inheritance graph
[legend]
Collaboration diagram for PeFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

BoundImportDirectoryboundImpDir ()
 Accessor function for the bound import directory.

const BoundImportDirectoryboundImpDir () const
 Accessor function for the bound import directory.

ComHeaderDirectorycomDir ()
 Accessor function for the COM+ descriptor directory.

const ComHeaderDirectorycomDir () const
 Accessor function for the COM+ descriptor directory.

DebugDirectorydebugDir ()
 Accessor function for the debug directory.

const DebugDirectorydebugDir () const
 Accessor function for the debug directory.

ExportDirectoryexpDir ()
 Accessor function for the export directory.

const ExportDirectoryexpDir () const
 Accessor function for the export directory.

virtual unsigned int getBits () const =0
virtual std::string getFileName () const =0
 Returns the name of the current file.

IatDirectoryiatDir ()
 Accessor function for the IAT directory.

const IatDirectoryiatDir () const
 Accessor function for the IAT directory.

MzHeadermzHeader ()
 Accessor function for the MZ header.

const MzHeadermzHeader () const
 Accessor function for the MZ header.

virtual int readBoundImportDirectory ()=0
 Reads the bound import directory of the current file from disc.

virtual int readComHeaderDirectory ()=0
 Reads the COM+ descriptor directory of the current file from disc.

virtual int readDebugDirectory ()=0
 Reads the Debug directory of the current file.

virtual int readExportDirectory ()=0
 Reads the export directory of the current file from disc.

virtual int readIatDirectory ()=0
 Reads the IAT directory of the current file from disc.

virtual int readImportDirectory ()=0
 Reads the import directory of the current file from disc.

virtual int readMzHeader ()=0
 Reads the MZ header of the current file from disc.

virtual int readPeHeader ()=0
 Reads the PE header of the current file from disc.

virtual int readRelocationsDirectory ()=0
 Reads the relocations directory of the current file from disc.

virtual int readResourceDirectory ()=0
 Reads the resource directory of the current file from disc.

virtual int readTlsDirectory ()=0
RelocationsDirectoryrelocDir ()
 Accessor function for the relocations directory.

const RelocationsDirectoryrelocDir () const
 Accessor function for the relocations directory.

ResourceDirectoryresDir ()
 Accessor function for the resource directory.

const ResourceDirectoryresDir () const
 Accessor function for the resource directory.

virtual void setFileName (std::string strFilename)=0
 Changes the name of the current file.

virtual void visit (PeFileVisitor &v)=0

Protected Attributes

BoundImportDirectory m_boundimpdir
 BoundImportDirectory of the current file.

ComHeaderDirectory m_comdesc
 COM+ descriptor directory of the current file.

DebugDirectory m_debugdir
ExportDirectory m_expdir
 Export directory of the current file.

std::string m_filename
 Name of the current file.

IatDirectory m_iat
 Import address table of the current file.

MzHeader m_mzh
 MZ header of the current file.

RelocationsDirectory m_relocs
 Relocations directory of the current file.

ResourceDirectory m_resdir
 ResourceDirectory of the current file.


Detailed Description

This class represents the common structures of PE and PE+ files.


Member Function Documentation

BoundImportDirectory & boundImpDir  ) 
 

Accessor function for the bound import directory.

Returns:
A reference to the file's bound import directory.

const BoundImportDirectory & boundImpDir  )  const
 

Accessor function for the bound import directory.

Returns:
A reference to the file's bound import directory.

ComHeaderDirectory & comDir  ) 
 

Accessor function for the COM+ descriptor directory.

Returns:
A reference to the file's COM+ descriptor directory.

const ComHeaderDirectory & comDir  )  const
 

Accessor function for the COM+ descriptor directory.

Returns:
A reference to the file's COM+ descriptor directory.

ExportDirectory & expDir  ) 
 

Accessor function for the export directory.

Returns:
A reference to the file's export directory.

const ExportDirectory & expDir  )  const
 

Accessor function for the export directory.

Returns:
A reference to the file's export directory.

MzHeader & mzHeader  ) 
 

Accessor function for the MZ header.

Returns:
A reference to the file's MZ header.

const MzHeader & mzHeader  )  const
 

Accessor function for the MZ header.

Returns:
A reference to the file's MZ header.

RelocationsDirectory & relocDir  ) 
 

Accessor function for the relocations directory.

Returns:
A reference to the file's relocations directory.

const RelocationsDirectory & relocDir  )  const
 

Accessor function for the relocations directory.

Returns:
A reference to the file's relocations directory.

ResourceDirectory & resDir  ) 
 

Accessor function for the resource directory.

Returns:
A reference to the file's resource directory.

const ResourceDirectory & resDir  )  const
 

Accessor function for the resource directory.

Returns:
A reference to the file's resource directory.


The documentation for this class was generated from the following files:
Generated on Mon Jan 17 20:50:13 2005 for PeLib by doxygen 1.3.7