#include <ExportDirectory.h>
Public Member Functions | |
| void | addFunction (const std::string &strFuncname, dword dwFuncAddr) |
| Add another function to be exported. | |
| dword | getAddressOfFunction (dword dwIndex) const |
| Get the address of an exported function. | |
| dword | getAddressOfFunctions () const |
| Return the AddressOfFunctions value of the export directory. | |
| dword | getAddressOfName (dword dwIndex) const |
| Get the address of the name of an exported function. | |
| dword | getAddressOfNameOrdinals () const |
| Returns the AddressOfNameOrdinals value. | |
| dword | getAddressOfNames () const |
| Return the AddressOfNames value of the export directory. | |
| dword | getBase () const |
| Return the Base value of the export directory. | |
| dword | getCharacteristics () const |
| Return the Characteristics value of the export directory. | |
| int | getFunctionIndex (const std::string &strFunctionName) const |
| Identifies a function through it's name. | |
| std::string | getFunctionName (dword dwIndex) const |
| Get the name of an exported function. | |
| word | getFunctionOrdinal (dword dwIndex) const |
| Get the ordinal of an exported function. | |
| word | getMajorVersion () const |
| Return the MajorVersion value of the export directory. | |
| word | getMinorVersion () const |
| Return the MinorVersion value of the export directory. | |
| dword | getName () const |
| Return the Name value of the export directory. | |
| std::string | getNameString () const |
| dword | getNumberOfAddressOfFunctionNames () const |
| Returns the number of AddressOfFunctionNames values. | |
| dword | getNumberOfAddressOfFunctions () const |
| Returns the number of AddressOfFunction values. | |
| dword | getNumberOfFunctions () const |
| Return the NumberOfFunctions value of the export directory. | |
| dword | getNumberOfNameOrdinals () const |
| Returns the number of NameOrdinals. | |
| dword | getNumberOfNames () const |
| Return the NumberOfNames value of the export directory. | |
| dword | getTimeDateStamp () const |
| Return the TimeDateStamp value of the export directory. | |
| int | read (const std::string &strFilename, unsigned int uiOffset, unsigned int uiSize, const PeHeader &pehHeader) |
| Read a file's export directory. | |
| void | rebuild (std::vector< byte > &vBuffer, dword dwRva) const |
| Rebuild the current export directory. | |
| void | setAddressOfFunction (dword dwIndex, dword dwValue) |
| Change the address of an exported function. | |
| void | setAddressOfFunctions (dword dwValue) |
| Set the AddressOfFunctions value of the export directory. | |
| void | setAddressOfName (dword dwIndex, dword dwValue) |
| Change the address of the name of an exported function. | |
| void | setAddressOfNames (dword dwValue) |
| Set the AddressOfNames value of the export directory. | |
| void | setBase (dword dwValue) |
| Set the Base value of the export directory. | |
| void | setCharacteristics (dword dwValue) |
| Set the Characteristics value of the export directory. | |
| void | setFunctionName (dword dwIndex, const std::string &strName) |
| Change the name of an exported function. | |
| void | setFunctionOrdinal (dword dwIndex, word wValue) |
| Change the ordinal of an exported function. | |
| void | setMajorVersion (word wValue) |
| Set the MajorVersion value of the export directory. | |
| void | setMinorVersion (word wValue) |
| Set the MinorVersion value of the export directory. | |
| void | setName (dword dwValue) |
| Set the Name value of the export directory. | |
| void | setNameString (const std::string &strFilename) |
| Changes the name of the file (according to the export directory). | |
| void | setNumberOfFunctions (dword dwValue) |
| Set the NumberOfFunctions value of the export directory. | |
| void | setNumberOfNames (dword dwValue) |
| Set the NumberOfNames value of the export directory. | |
| void | setTimeDateStamp (dword dwValue) |
| Set the TimeDateStamp value of the export directory. | |
| unsigned int | size () const |
| Returns the size of the current export directory. | |
| int | write (const std::string &strFilename, unsigned int uiOffset, unsigned int uiRva) const |
| Writes the current export directory to a file. | |
Private Attributes | |
| PELIB_IMAGE_EXP_DIRECTORY | m_ied |
| Used to store all necessary information about a file's exported functions. | |
This class handles the export directory.
|
||||||||||||
|
Add another function to be exported.
|
|
|
Get the address of an exported function.
|
|
|
Return the AddressOfFunctions value of the export directory.
|
|
|
Get the address of the name of an exported function.
|
|
|
Returns the AddressOfNameOrdinals value.
|
|
|
Return the AddressOfNames value of the export directory.
|
|
|
Return the Base value of the export directory.
|
|
|
Return the Characteristics value of the export directory.
|
|
|
Identifies a function through it's name. Identifies an exported function through it's name.
|
|
|
Get the name of an exported function.
|
|
|
Get the ordinal of an exported function.
|
|
|
Return the MajorVersion value of the export directory.
|
|
|
Return the MinorVersion value of the export directory.
|
|
|
Return the Name value of the export directory.
|
|
|
Return the NumberOfFunctions value of the export directory.
|
|
|
Return the NumberOfNames value of the export directory.
|
|
|
Return the TimeDateStamp value of the export directory.
|
|
||||||||||||||||||||
|
Read a file's export directory.
|
|
||||||||||||
|
Rebuild the current export directory.
|
|
||||||||||||
|
Change the address of an exported function.
|
|
|
Set the AddressOfFunctions value of the export directory.
|
|
||||||||||||
|
Change the address of the name of an exported function.
|
|
|
Set the AddressOfNames value of the export directory.
|
|
|
Set the Base value of the export directory.
|
|
|
Set the Characteristics value of the export directory.
|
|
||||||||||||
|
Change the name of an exported function.
|
|
||||||||||||
|
Change the ordinal of an exported function.
|
|
|
Set the MajorVersion value of the export directory.
|
|
|
Set the MinorVersion value of the export directory.
|
|
|
Set the Name value of the export directory.
|
|
|
Changes the name of the file (according to the export directory). Changes the filename according to the export directory.
|
|
|
Set the NumberOfFunctions value of the export directory.
|
|
|
Set the NumberOfNames value of the export directory.
|
|
|
Set the TimeDateStamp value of the export directory.
|
|
|
Returns the size of the current export directory.
|
|
||||||||||||||||
|
Writes the current export directory to a file.
|
1.3.7