retdec
|
#include <PeFile.h>
Public Member Functions | |
virtual | ~PeFile () |
virtual std::string | getFileName () const =0 |
Returns the name of the current file. More... | |
virtual void | setFileName (const std::string &strFilename)=0 |
Changes the name of the current file. More... | |
virtual int | readExportDirectory ()=0 |
Reads the export directory of the current file from disc. More... | |
virtual int | readImportDirectory ()=0 |
Reads the import directory of the current file from disc. More... | |
virtual int | readBoundImportDirectory ()=0 |
Reads the bound import directory of the current file from disc. More... | |
virtual int | readResourceDirectory ()=0 |
Reads the resource directory of the current file from disc. More... | |
virtual int | readRelocationsDirectory ()=0 |
Reads the relocations directory of the current file from disc. More... | |
virtual int | readComHeaderDirectory ()=0 |
Reads the COM+ descriptor directory of the current file from disc. More... | |
virtual int | readIatDirectory ()=0 |
Reads the IAT directory of the current file from disc. More... | |
virtual int | readDebugDirectory ()=0 |
Reads the Debug directory of the current file. More... | |
virtual int | readTlsDirectory ()=0 |
Reads the TLS directory of the current file. More... | |
virtual int | readRichHeader (std::size_t offset, std::size_t size, bool ignoreInvalidKey=false)=0 |
Reads rich header of the current file. More... | |
virtual int | readCoffSymbolTable (ByteBuffer &fileData)=0 |
Reads the COFF symbol table of the current file. More... | |
virtual int | readDelayImportDirectory ()=0 |
Reads delay import directory of the current file. More... | |
virtual int | readSecurityDirectory ()=0 |
Reads security directory of the current file. More... | |
virtual LoaderError | loaderError () const =0 |
Returns a loader error, if there was any. More... | |
virtual unsigned int | getBits () const =0 |
const ImageLoader & | imageLoader () const |
Accessor function for the image loader. More... | |
ImageLoader & | imageLoader () |
Accessor function for the MZ header. More... | |
const RichHeader & | richHeader () const |
Accessor function for the Rich header. More... | |
RichHeader & | richHeader () |
Accessor function for the Rich header. More... | |
const CoffSymbolTable & | coffSymTab () const |
Accessor function for the COFF symbol table. More... | |
CoffSymbolTable & | coffSymTab () |
Accessor function for the COFF symbol table. More... | |
const SecurityDirectory & | securityDir () const |
Accessor function for the security directory. More... | |
SecurityDirectory & | securityDir () |
Accessor function for the security directory. More... | |
Protected Attributes | |
std::string | m_filename |
Name of the current file. More... | |
ImageLoader | m_imageLoader |
RichHeader | m_richheader |
Rich header of the current file. More... | |
CoffSymbolTable | m_coffsymtab |
Symbol table of the current file. More... | |
SecurityDirectory | m_secdir |
Security directory of the current file. More... | |
This class represents the common structures of PE and PE+ files.
|
virtual |
CoffSymbolTable & PeLib::PeFile::coffSymTab | ( | ) |
Accessor function for the COFF symbol table.
const CoffSymbolTable & PeLib::PeFile::coffSymTab | ( | ) | const |
Accessor function for the COFF symbol table.
|
pure virtual |
Implemented in PeLib::PeFileT.
|
pure virtual |
Returns the name of the current file.
Implemented in PeLib::PeFileT.
ImageLoader & PeLib::PeFile::imageLoader | ( | ) |
Accessor function for the MZ header.
const ImageLoader & PeLib::PeFile::imageLoader | ( | ) | const |
Accessor function for the image loader.
|
pure virtual |
Returns a loader error, if there was any.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the bound import directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the COFF symbol table of the current file.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the COM+ descriptor directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the Debug directory of the current file.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads delay import directory of the current file.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the export directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the IAT directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the import directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the relocations directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the resource directory of the current file from disc.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads rich header of the current file.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads security directory of the current file.
Implemented in PeLib::PeFileT.
|
pure virtual |
Reads the TLS directory of the current file.
Implemented in PeLib::PeFileT.
RichHeader & PeLib::PeFile::richHeader | ( | ) |
Accessor function for the Rich header.
const RichHeader & PeLib::PeFile::richHeader | ( | ) | const |
Accessor function for the Rich header.
SecurityDirectory & PeLib::PeFile::securityDir | ( | ) |
Accessor function for the security directory.
const SecurityDirectory & PeLib::PeFile::securityDir | ( | ) | const |
Accessor function for the security directory.
|
pure virtual |
Changes the name of the current file.
Implemented in PeLib::PeFileT.
|
protected |
Symbol table of the current file.
|
protected |
Name of the current file.
|
protected |
|
protected |
Rich header of the current file.
|
protected |
Security directory of the current file.