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

RelocationsDirectory Class Reference

Class that handles the relocations directory. More...

#include <RelocationsDirectory.h>

List of all members.

Public Member Functions

void addRelocationData (unsigned int ulRelocation, word wValue)
 Adds new data to a relocation.

unsigned int getNumberOfRelocationData (unsigned int ulRelocation) const
 Returns the number of relocation data entries of a specific relocation.

unsigned int getNumberOfRelocations () const
 Returns the number of relocations in the relocations directory.

word getRelocationData (unsigned int ulRelocation, unsigned int ulDataNumber) const
 Returns the RelocationData of a relocation.

dword getSizeOfBlock (unsigned int ulRelocation) const
 Returns the SizeOfBlock value of a relocation.

dword getVirtualAddress (unsigned int ulRelocation) const
 Returns the VA of a relocation.

int read (const std::string &strFilename, unsigned int uiOffset, unsigned int uiSize)
 Read a file's relocations directory.

void rebuild (std::vector< byte > &vBuffer) const
 Rebuilds the relocations directory.

void removeRelocationData (unsigned int ulRelocation, word wValue)
 Removes data from a relocation.

void setRelocationData (unsigned int ulRelocation, unsigned int ulDataNumber, word wData)
 Changes the relocation data of a relocation.

void setSizeOfBlock (unsigned int ulRelocation, dword dwValue)
 Changes the SizeOfBlock of a relocation.

void setVirtualAddress (unsigned int ulRelocation, dword dwValue)
 Changes the VirtualAddress of a relocation.

unsigned int size () const
 Returns the size of the relocations directory.

int write (const std::string &strFilename, unsigned int dwOffset) const
 Writes the relocations directory to a file.


Private Attributes

std::vector< IMG_BASE_RELOC > m_vRelocations
 Used to store the relocation data.


Detailed Description

Class that handles the relocations directory.

This class handles the relocations directory.


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