libPeConv
A library to load, manipulate, dump PE files.
|
#include <exported_func.h>
Public Member Functions | |
ExportedFunc () | |
ExportedFunc (const ExportedFunc &other) | |
ExportedFunc (std::string libName, std::string funcName, DWORD funcOrdinal) | |
ExportedFunc (std::string libName, DWORD funcOrdinal) | |
ExportedFunc (const std::string &forwarderName) | |
bool | operator< (const ExportedFunc &other) const |
std::string | toString () const |
std::string | nameToString () const |
bool | isValid () const |
Static Public Member Functions | |
static std::string | formatName (std::string name) |
static bool | isTheSameFuncName (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2) |
Compares functions' names. If function is defined by an ordinal, compares ordinals. Does not include the DLL name in the comparison. | |
static bool | isTheSameDllName (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2) |
Compares functions' DLL names. | |
static bool | isTheSameFunc (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2) |
Compares functions' names. If function is defined by an ordinal, compares ordinals. Includes the DLL name in the comparison. | |
Public Attributes | |
std::string | libName |
std::string | funcName |
DWORD | funcOrdinal |
bool | isByOrdinal |
A class storing the information about the exported function.
Definition at line 53 of file exported_func.h.
|
inline |
Definition at line 76 of file exported_func.h.
ExportedFunc::ExportedFunc | ( | const ExportedFunc & | other | ) |
Definition at line 121 of file exported_func.cpp.
ExportedFunc::ExportedFunc | ( | std::string | libName, |
std::string | funcName, | ||
DWORD | funcOrdinal ) |
ExportedFunc::ExportedFunc | ( | std::string | libName, |
DWORD | funcOrdinal ) |
ExportedFunc::ExportedFunc | ( | const std::string & | forwarderName | ) |
|
static |
Converts the name to the normalized format.
Definition at line 156 of file exported_func.cpp.
|
static |
Compares functions' DLL names.
Definition at line 210 of file exported_func.cpp.
|
static |
Compares functions' names. If function is defined by an ordinal, compares ordinals. Includes the DLL name in the comparison.
Definition at line 225 of file exported_func.cpp.
|
static |
Compares functions' names. If function is defined by an ordinal, compares ordinals. Does not include the DLL name in the comparison.
Definition at line 165 of file exported_func.cpp.
|
inline |
Definition at line 125 of file exported_func.h.
std::string ExportedFunc::nameToString | ( | ) | const |
Gets a string representation of the variable. Short info about the function: only function name or ordinal (if the name is missing).
Definition at line 252 of file exported_func.cpp.
|
inline |
Compare two functions with each other. Gives the priority to the named functions: if one of the compared functions is unnamed, the named one is treated as smaller. If both functions are unnamed, the function with the smaller ordinal is treated as smaller. Otherwise, the function with the shorter name is treated as smaller.
Definition at line 89 of file exported_func.h.
std::string ExportedFunc::toString | ( | ) | const |
Gets a string representation of the variable. Full info about the function: library, name, ordinal.
Definition at line 236 of file exported_func.cpp.
std::string peconv::ExportedFunc::funcName |
Definition at line 71 of file exported_func.h.
DWORD peconv::ExportedFunc::funcOrdinal |
Definition at line 72 of file exported_func.h.
bool peconv::ExportedFunc::isByOrdinal |
Definition at line 73 of file exported_func.h.
std::string peconv::ExportedFunc::libName |
Definition at line 70 of file exported_func.h.