#include <BoundImportDirectory.h>
Public Member Functions | |
int | addBoundImport (const std::string &strModuleName, dword dwTds, word dwOmn, word wWfr) |
Adds another bound import. | |
void | addForwardedModule (dword dwBidnr, const std::string &name, dword timeStamp=0, word offsetModuleName=0, word forwardedModules=0) |
word | calcNumberOfModuleForwarderRefs (dword dwBidnr) const |
void | clear () |
Empties the BoundImport directory. | |
int | getModuleIndex (const std::string &strModuleName) const |
Identifies a module through it's name. | |
std::string | getModuleName (dword dwBidnr, dword forwardedModule) const |
std::string | getModuleName (dword dwBidnr) const |
Retrieves the ModuleName value of a bound import. | |
word | getNumberOfModuleForwarderRefs (dword dwBidnr, dword forwardedModule) const |
word | getNumberOfModuleForwarderRefs (dword dwBidnr) const |
Retrieves the NumberOfModuleForwarderRefs value of a bound import. | |
int | getNumberOfModules () const |
Returns the number of files in the BoundImport directory. | |
word | getOffsetModuleName (dword dwBidnr, dword forwardedModule) const |
word | getOffsetModuleName (dword dwBidnr) const |
Retrieves the OffsetModuleName value of a bound import. | |
dword | getTimeDateStamp (dword dwBidnr, dword forwardedModule) const |
dword | getTimeDateStamp (dword dwBidnr) const |
Retrieves the TimeDateStamp value of a bound import. | |
int | read (const std::string &strFileName, dword dwOffset, dword dwSize) |
Reads the BoundImport directory table from a PE file. | |
void | rebuild (std::vector< byte > &vBuffer, bool fMakeValid=true) const |
Rebuilds the BoundImport directory. | |
void | removeBoundImport (const std::string &strModuleName) |
Removes a bound import. | |
void | removeForwardedModule (dword dwBidnr, word forwardedModule) |
void | setModuleName (dword dwBidnr, dword forwardedModule, const std::string &strModuleName) |
void | setModuleName (dword dwBidnr, const std::string &strModuleName) |
Updates the ModuleName value of a bound import. | |
void | setNumberOfModuleForwarderRefs (dword dwBidnr, dword forwardedModule, word wMfr) |
void | setNumberOfModuleForwarderRefs (dword dwBidnr, word wMfr) |
Updates the NumberOfModuleForwarderRefs value of a bound import. | |
void | setOffsetModuleName (dword dwBidnr, dword forwardedModule, word wOmn) |
void | setOffsetModuleName (dword dwBidnr, word wOmn) |
Updates the OffsetModuleName value of a bound import. | |
void | setTimeDateStamp (dword dwBidnr, dword forwardedModule, dword dwTds) |
void | setTimeDateStamp (dword dwBidnr, dword dwTds) |
Updates the TimeDateStamp value of a bound import. | |
unsigned int | size () const |
Returns the size of the BoundImport directory. | |
int | write (const std::string &strFilename, dword dwOffset, bool fMakeValid=true) const |
Writes the current bound import directory to a file. | |
Private Attributes | |
std::vector< PELIB_IMAGE_BOUND_DIRECTORY > | m_vIbd |
Stores the individual BoundImport fields. |
This class can read and modify the BoundImport directory table of a PE file.
|
Adds another bound import. Adds another bound import to the BoundImport directory.
|
|
Empties the BoundImport directory. Removes all bound import files. |
|
Identifies a module through it's name. Searches for the first instance of a module with the given modulename.
|
|
Retrieves the ModuleName value of a bound import. Retrieves the value of the ModuleName value of a bound import field.
|
|
Retrieves the NumberOfModuleForwarderRefs value of a bound import. Retrieves the value of the NumberOfModuleForwarderRefs value of a bound import field.
|
|
Returns the number of files in the BoundImport directory.
|
|
Retrieves the OffsetModuleName value of a bound import. Retrieves the value of the OffsetModuleName value of a bound import field.
|
|
Retrieves the TimeDateStamp value of a bound import. Retrieves the value of the TimeDateStamp value of a bound import field.
|
|
Reads the BoundImport directory table from a PE file. Reads the BoundImport directory from a PE file.
|
|
Rebuilds the BoundImport directory. Rebuilds the BoundImport directory. The rebuilded BoundImport directory can then be written back to a PE file.
Here is the call graph for this function: |
|
Removes a bound import. Removes a field specified by the parameter filename from the BoundImport directory.
|
|
Updates the ModuleName value of a bound import. Changes the ModuleName value of an existing bound import field.
|
|
Updates the NumberOfModuleForwarderRefs value of a bound import. Changes the NumberOfModuleForwarderRefs value of an existing bound import field.
|
|
Updates the OffsetModuleName value of a bound import. Changes the OffsetModuleName value of an existing bound import field.
|
|
Updates the TimeDateStamp value of a bound import. Changes the TimeDateStamp value of an existing bound import field.
|
|
Returns the size of the BoundImport directory. Returns the size of the rebuilt BoundImportDirectory.
|
|
Writes the current bound import directory to a file.
Here is the call graph for this function: |